summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UICommon/XUIAtlas.cs
blob: d7291535898a0ae9dc5ae34b5741477c989bcfed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using UILib;
using UnityEngine;


public class XUIAtlas : MonoBehaviour, IXUIAtlas
{
    public UIAtlas atlas
    {
        get { return m_uiAtlas;  }
    }

    void Awake()
    {
        m_uiAtlas = GetComponent<UIAtlas>();
        if (null == m_uiAtlas)
        {
            Debug.LogError("null == m_uiAtlas");
        }
    }

    void OnDisable()
    {
        m_uiAtlas = null;
    }
    private UIAtlas m_uiAtlas = null;
}