Ejemplo n.º 1
0
        void Awake()
        {
            instance = this;

            BasePanel[] ps = GetComponentsInChildren <BasePanel>(true);
            panels.Clear();
            for (int i = 0; i < ps.Length; i++)
            {
                panels.Add(ps[i]);
            }
        }
Ejemplo n.º 2
0
 void OnDestroy()
 {
     instance = null;
 }