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); }
void myTigerCallBack(int st, MDTiger tiger) { if (st == 1) { mTiger.ESetActive(false); showReward(tiger); } else if (st == 0) { } }