/// <summary> /// 6点刷新任务窗口 /// </summary> private void SixOClockRefreshTaskWindow() { if (_taskWindow != null && _model.IsOpenMusicTemplateTaskEntrance) { _activityMissionModel = new ActivityMissionModel(_curActivity); _taskWindow.SetData(_activityMissionModel.MusicUserMissionInfo); } }
public void SetRedDot(ActivityStoryModel storyModel, ActivityMissionModel missionModel) { if (storyModel != null) { _storyBtn.transform.Find("RedPoint").gameObject.SetActive(storyModel.IsShowStoryRedDot()); } if (missionModel != null) { _taskBtn.transform.Find("Red").gameObject.SetActive(missionModel.IsShowMissionRedDot()); } }
private void InitModel() { if (_model.IsOpenMusicExchangeShopEntrance) { _exchangeShopModel = new ActivityExchangeShopModel(_curActivity); } if (_model.IsOpenMusicTemplateStoryEntrance) { _storyModel = new ActivityStoryModel(_curActivity); } if (_model.IsOpenMusicTemplateTaskEntrance) { _activityMissionModel = new ActivityMissionModel(_curActivity); } }
public override void OnMessage(Message message) { string name = message.Name; object[] body = message.Params; switch (name) { case MessageConst.CMD_ACTIVITY_MUSIC_TEMPLATE_ON_SHOW_REFRESH: //OnShow在刷新 View.RefreshNum(); CapsuleBattleOver(); OnShowRefreshMusicLevelEntrance(); OnShowGetData(() => { if (_model.IsOpenMusicTemplateTaskEntrance) { _activityMissionModel = new ActivityMissionModel(_curActivity); } View.SetRedDot(_storyModel, _activityMissionModel); }); break; case MessageConst.CMD_OPEN_ACTIVITYMUSIC_TASK_WINDOW: OpenTaskWindow(); break; case MessageConst.CMD_OPEN_ACTIVITYMUSIC_STORY_WINDOW: OpenStoryWindow(); break; case MessageConst.CMD_ACTIVITY_MUSIC_OVER: ModuleManager.Instance.GoBack(); break; case MessageConst.CMD_OPEN_ACTIVITYMUSIC_EXCHANGESHOP: SendMessage(new Message(MessageConst.CMD_SHOW_ACTIVITYMUSIC_EXCHANGESHOP, _exchangeShopModel)); break; } }