public void Init(CardMemoriesInfoRes res) { RewardList = res.Award; BuyEnergyNum = res.UserCardMemoriesInfo.BuyPowerNum; ResetTimes = res.UserCardMemoriesInfo.ResetMemoriesNum; Mission = res.UserMemmoriesMission; }
private void OnGetInfo(CardMemoriesInfoRes res) { GlobalData.PlayerModel.UpdateUserPower(res.UserPower); _model.Init(res); // View.SetCost(GlobalData.ConfigModel.GetConfigByKey(GameConfigKey.MEMORIES_CHALLENGE_CONSUME_POEWR), // GlobalData.ConfigModel.GetConfigByKey(GameConfigKey.MEMORIES_CHALLENGE_CONSUME_GOLD)); // // View.SetRewardBtn(_model.Mission.Status); NetWorkManager.Instance.Send <MyCardRes>(CMD.CARDC_MYCARD, null, OnCardRefresh); }