Esempio n. 1
0
    /// <summary>
    /// 星活动奖励回包
    /// </summary>
    /// <param name="res"></param>
    private void OnGetAwardCallBack(MissionAwardsRes res)
    {
        LoadingOverlay.Instance.Hide();

        foreach (var t in res.Awards)
        {
            RewardUtil.AddReward(t);
            RewardVo vo = new RewardVo(t);
            FlowText.ShowMessage(I18NManager.Get("Activity_Get", vo.Name, vo.Num));
        }


        //刷新数据
        _missionModel.UpdateUserMission(res.UserMission);
        _missionModel.UpdateUserMissionInfo(res.UserMissionInfo);
        _missionModel.UpdateUserStarActivityMission(res.UserMission, _missionModel.Day);

        //刷新UI
        View.SetData(_missionModel, _missionModel.Day);
    }