Example #1
0
    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);
    }
Example #2
0
    private PaymentType type; // 金币还是钻石

    void Awake()
    {
        instance = this;
    }