Пример #1
0
    // ----

    void Awake()
    {
        instance = this;

        m_currentPanel = null;
        m_panelStack   = new Stack <XUIPanel>();

        foreach (XUIPanel p in this.gameObject.GetComponentsInChildren <XUIPanel>())
        {
            m_panelDict.Add(p.name, p);
        }
    }
Пример #2
0
    // ----
    void Awake()
    {
        instance = this;

        m_currentPanel = null;
        m_panelStack = new Stack<XUIPanel>();

        foreach ( XUIPanel p in this.gameObject.GetComponentsInChildren<XUIPanel>())
        {
            m_panelDict.Add(p.name, p);
        }
    }