From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/UICommon/XUIAtlas.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Client/Assets/Scripts/UICommon/XUIAtlas.cs (limited to 'Client/Assets/Scripts/UICommon/XUIAtlas.cs') diff --git a/Client/Assets/Scripts/UICommon/XUIAtlas.cs b/Client/Assets/Scripts/UICommon/XUIAtlas.cs new file mode 100644 index 00000000..d7291535 --- /dev/null +++ b/Client/Assets/Scripts/UICommon/XUIAtlas.cs @@ -0,0 +1,27 @@ +using UILib; +using UnityEngine; + + +public class XUIAtlas : MonoBehaviour, IXUIAtlas +{ + public UIAtlas atlas + { + get { return m_uiAtlas; } + } + + void Awake() + { + m_uiAtlas = GetComponent(); + if (null == m_uiAtlas) + { + Debug.LogError("null == m_uiAtlas"); + } + } + + void OnDisable() + { + m_uiAtlas = null; + } + private UIAtlas m_uiAtlas = null; +} + -- cgit v1.1-26-g67d0