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); }
private PaymentType type; // 金币还是钻石 void Awake() { instance = this; }