private void OnLineReward(float times) { FallBox_dataItem config = Global.gApp.gGameData.FallBoxDataConfig.Get(Global.gApp.gSystemMgr.GetBaseAttrMgr().GetLevel()); ItemDTO addItemDTO = new ItemDTO(SpecialItemIdConstVal.GOLD, config.coin * times, BehaviorTypeConstVal.OPT_RECEIVE_SUPPLY); GameItemFactory.GetInstance().AddItem(addItemDTO); }
private void InitCoinInfo() { FallBox_dataItem config = Global.gApp.gGameData.FallBoxDataConfig.Get(Global.gApp.gSystemMgr.GetBaseAttrMgr().GetLevel()); mCoin = config.coin; CmNum.text.text = UiTools.FormateMoneyUP(mCoin); CmNumAd.text.text = UiTools.FormateMoneyUP(mCoin * mAdTimes); airdropicon_close.gameObject.SetActive(true); airdropicon_open.gameObject.SetActive(false); }