Example #1
0
    void initView()
    {
        if (bInit)
        {
            return;
        }
        bInit = true;

        if (YeHuoSDK.bUsePayCode2)
        {
            spBackgroud.height = 700;
            goBtnBuyCoin.SetActive(false);
            goBtnBuyJewel.SetActive(false);
            goBtnBuyRich.SetActive(false);

            labCostRMB.text = "20 RMB";
        }
        else
        {
            labCostRMB.text    = "30 RMB";
            spBackgroud.height = 830;
//			goBtnBuyCoin.SetActive(true);
//			goBtnBuyJewel.SetActive(true);
//			goBtnBuyRich.SetActive(true);
        }
        int coin1 = Mathf.Min(20000, dp.cj * 1000 + 1000);

        labCostCoin.text = coin1.ToString();

        mTiger = D0330TigerPanel.CreateTigerPanel();
        mTiger.tigerCallBack = myTigerCallBack;
        mTiger.ESetActive(false);
    }
Example #2
0
    public static D0330TigerPanel CreateTigerPanel()
    {
        Object obj = Resources.Load("pbD0330TigerPanel");

        if (obj != null)
        {
            GameObject      go = Instantiate(obj) as GameObject;
            D0330TigerPanel t  = go.GetComponent <D0330TigerPanel>();
            t.InitSuperTiger();
            return(t);
        }
        return(null);
    }