void Init() { if (eventUI == null) { eventUI = GetComponentInChildren <EventUI> (); } if (goUI == null) { goUI = GetComponentInChildren <GoUI> (); } if (buyUI == null) { buyUI = GetComponentInChildren <BuyUI> (); } iMainUIArray = GetComponentsInChildren <IMainUI> (); // Debug.Log ("ima:" + iMainUIArray.Length); }
void Awake() { _instance = this; Init(); }