Beispiel #1
0
        protected override void Awake()
        {
            base.Awake();

            // Register all child panels.
            MonoBehaviour[] panels = this.gameObject.GetComponentsInChildren <MonoBehaviour> (true);
            for (int i = 0; i < panels.Length; i++)
            {
                UiPanelInterface panel = panels [i] as UiPanelInterface;
                if (panel != null)
                {
                    RegisterPanel(panel.GetName(), panel);
                }
            }
        }