| | |
| | |
|
| | | PlayerDatas.Instance.hero.aiHandler.PriorityNpcID = monsterNPCID;
|
| | |
|
| | | FunctionalGuideCenter.Instance.finishGuideEevent += OnFunctionalGuideComplete;
|
| | | m_Model.updateMissionEvent += OnDungeonMissionUpdate;
|
| | | BossShowModel.Instance.bossShowPreparedEvent += OnBossShowBegin;
|
| | | }
|
| | |
|
| | | public override void UnInitialize()
|
| | | {
|
| | | FunctionalGuideCenter.Instance.finishGuideEevent -= OnFunctionalGuideComplete;
|
| | | m_Model.updateMissionEvent -= OnDungeonMissionUpdate;
|
| | | BossShowModel.Instance.bossShowPreparedEvent -= OnBossShowBegin;
|
| | |
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(18);
|
| | | base.UnInitialize();
|
| | | }
|
| | |
|
| | |
| | | private void OnBossShowBegin()
|
| | | {
|
| | | step = Step.BossShow;
|
| | | }
|
| | |
|
| | | private void OnFunctionalGuideComplete(int _guideId)
|
| | | {
|
| | | if (_guideId == 18)
|
| | | {
|
| | | FunctionalGuideCenter.Instance.StartGuide(70);
|
| | | }
|
| | | }
|
| | |
|
| | | class BossShowStep
|
| | |
| | | bool guardScaled = false;
|
| | | bool guardAdjustPosition = false;
|
| | |
|
| | | Transform guideTarget;
|
| | | bool xpSkillGuide = false;
|
| | | bool xpSkillGuideEnd = false;
|
| | | float xpSkillGuideTime = 0f;
|
| | | float xpSkillGuideEndTime = 0f;
|
| | |
|
| | | public KillMonsterStep(GuardDungeonStage _stage)
|
| | | {
|
| | | dungeonStage = _stage;
|
| | |
| | | guardScaled = false;
|
| | | guardAdjustPosition = false;
|
| | | cageInvincibleEffect = null;
|
| | |
|
| | | var guideConfig = Config.Instance.Get<GuideConfig>(18);
|
| | | var stepConfig = ScriptableObjectLoader.LoadSoFunctionalGuideStep(guideConfig.Steps[0]);
|
| | |
|
| | | guideTarget = WindowCenter.Instance.uiRoot.transform.Find(stepConfig.UIElementPath);
|
| | | if (guideTarget != null)
|
| | | {
|
| | | guideTarget.transform.localScale = Vector3.zero;
|
| | | }
|
| | |
|
| | | xpSkillGuideTime = Time.time + GeneralDefine.xpGuideDelay;
|
| | | xpSkillGuideEndTime = xpSkillGuideTime + GeneralDefine.xpGuideDuration;
|
| | | }
|
| | |
|
| | | public void OnUpdate()
|
| | | {
|
| | | if (!xpSkillGuide && Time.time > xpSkillGuideTime)
|
| | | {
|
| | | guideTarget.transform.localScale = Vector3.one;
|
| | | FunctionalGuideCenter.Instance.StartGuide(18);
|
| | | xpSkillGuide = true;
|
| | | }
|
| | |
|
| | | if (!xpSkillGuideEnd && Time.time > xpSkillGuideEndTime)
|
| | | {
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(18);
|
| | | xpSkillGuideEnd = true;
|
| | | }
|
| | |
|
| | | var actors = GAMgr.Instance.GetGroupList(E_ActorGroup.Enemy);
|
| | | if (actors == null)
|
| | | {
|
| | |
| | |
|
| | | public void OnExit()
|
| | | {
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(18);
|
| | | if (cageInvincibleEffect != null)
|
| | | {
|
| | | SFXPlayUtility.Instance.Release(cageInvincibleEffect);
|