Esempio n. 1
0
        private void DailyRefreshMission(MissionRefreshRes res)
        {
            //貌似回包的东西有点讲究,应该是更新后的数据吧!太坑爹了!
            _missionModel.UpdateDailyMission(res.UserMissions);
            _missionModel.UpdateUserMissionInfo(res.UserMissionInfo);
            _missionModel.UserMissionList.Sort();
            View.SetMissionItemData(_missionModel);
            View.ChangeViewState(curMissionTypePb); //默认日常任务的UI
            Debug.Log("整点刷新");

            if (curMissionTypePb == MissionTypePB.Daily)
            {
                View.SetDailyMissionInfo();
            }
            else
            {
                View.SetWeekMissionInfo();
            }
        }