| | |
| | | TreasureModel treasureModel { get { return ModelCenter.Instance.GetModel<TreasureModel>(); } }
|
| | | DemonJarModel demonJarModel { get { return ModelCenter.Instance.GetModel<DemonJarModel>(); } }
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | FairyGrabBossModel fairyGrabBossModel { get { return ModelCenter.Instance.GetModel<FairyGrabBossModel>(); } }
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | |
| | | PlayerTaskDatas.CompletionOfTaskEvent += CompletionOfTaskEvent;
|
| | | RedpointCenter.Instance.redpointValueChangeEvent += RedpointValueChangeEvent;
|
| | | NewBieCenter.Instance.guideBeginEvent += GuideBeginEvent;
|
| | |
|
| | | fairyGrabBossModel.bossGrabHintEvent += bossGrabHintEvent;
|
| | | }
|
| | |
|
| | | private void CompletionOfTaskEvent(int obj)
|
| | |
| | | protected override void OnActived()
|
| | | {
|
| | | m_HighSettingTip.OnActived();
|
| | | IsShowTaskPanel();//是否显示任务面板
|
| | | }
|
| | |
|
| | | IEnumerator Co_Load()
|
| | |
| | | var inDungeon = IsDungeon();
|
| | | if (inDungeon)
|
| | | {
|
| | | m_TaskAndTeamTip.SetActive(!inDungeon);
|
| | | m_FunctionForecastTip.gameObject.SetActive(false);
|
| | | if (WindowCenter.Instance.CheckOpen<FunctionForecastWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<FunctionForecastWin>();
|
| | | }
|
| | | m_TaskSwithButton.gameObject.SetActive(false);
|
| | | if (mapId != PlayerDatas.Instance.baseData.MapID)
|
| | | {
|
| | | CopyOfThePanel.localPosition = CopyOfThePosition2.localPosition;
|
| | |
| | | {
|
| | | Event_Duplicates(true, CopyOfThePanelSpeed);
|
| | | }
|
| | |
|
| | | m_TaskAndTeamTip.SetActive(true);
|
| | | m_FunctionForecastTip.gameObject.SetActive(true);
|
| | | m_TaskSwithButton.gameObject.SetActive(true);
|
| | | }
|
| | | mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | m_HighSettingTip.AfterOpen();
|
| | | m_ChatTip.OnAfterOpen();
|
| | | HandleAchievement();
|
| | | |
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | |
| | | m_CollectBtn.RemoveAllListeners();
|
| | | GA_NpcCollect.OnArrive -= OnArriveCollectNPC;
|
| | | GA_NpcCollect.OnLeave -= OnLeaveCollectNpc;
|
| | | fairyGrabBossModel.bossGrabHintEvent -= bossGrabHintEvent;
|
| | | m_CollectBtn.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | |
| | | int mapID = PlayerDatas.Instance.baseData.MapID;
|
| | | var config = Config.Instance.Get<MapConfig>(mapID);
|
| | | int[] atkInt = pKModel.GetArea(config.AtkType).ToArray();
|
| | | if (onMainModel.ShieldedArea.Contains(PlayerDatas.Instance.baseData.MapID) || fairyGrabBossModel.grabBossHintOpen)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (atkInt.Length > 1 && Buffmodel.PkType != 5)
|
| | | {
|
| | | onMainModel.AreaState = Buffmodel.PkType;
|
| | |
| | | _MarkRay.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | private void IsShowTaskPanel()//是否显示任务面板
|
| | | {
|
| | | var inDungeon = IsDungeon();
|
| | | if (inDungeon || fairyGrabBossModel.grabBossHintOpen)
|
| | | {
|
| | | m_TaskAndTeamTip.SetActive(false);
|
| | | m_TaskSwithButton.gameObject.SetActive(false);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_TaskAndTeamTip.SetActive(true);
|
| | | m_TaskSwithButton.gameObject.SetActive(true);
|
| | | }
|
| | | }
|
| | | private void bossGrabHintEvent()
|
| | | {
|
| | | IsShowTaskPanel();
|
| | | if (!fairyGrabBossModel.grabBossHintOpen && Buffmodel.PkType != 0)
|
| | | {
|
| | | DTCA202_tagMCAttackMode.Send_SwitchAttackMode((E_AttackMode)0);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|