예제 #1
0
    public void Init(CardMemoriesInfoRes res)
    {
        RewardList = res.Award;

        BuyEnergyNum = res.UserCardMemoriesInfo.BuyPowerNum;
        ResetTimes   = res.UserCardMemoriesInfo.ResetMemoriesNum;
        Mission      = res.UserMemmoriesMission;
    }
예제 #2
0
    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);
    }