コード例 #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);
    }
コード例 #2
0
ファイル: BuyUI.cs プロジェクト: mengtest/Fight-for-Seven
    private PaymentType type; // 金币还是钻石

    void Awake()
    {
        instance = this;
    }