// ---- 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); } }
// ---- 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); } }