| | |
| | | ClientDungeonStageUtility.onReceiveCustomDropItme += OnReceiveCustomDropItme; |
| | | dungeonModel.onDungeonResultEvent += OnDungeonResultEvent; |
| | | ClientDropItemUtility.OnItemPickup += OnItemPickup; |
| | | PersonalEnemy.OnNpcAppear += OnNpcAppear; |
| | | }
|
| | |
|
| | | protected override void OnStageLoadFinish()
|
| | |
| | |
|
| | | void InitializeBoss()
|
| | | {
|
| | | if (clientFightBoss != null)
|
| | | {
|
| | | clientFightBoss.ActorInfo.serverDie = true;
|
| | | GAMgr.Instance.ServerDie(clientFightBoss.ServerInstID);
|
| | | GAMgr.Instance.Release(clientFightBoss);
|
| | | clientFightBoss = null;
|
| | | }
|
| | |
|
| | | var config = HazyRegionConfig.Get(hazyRegionModel.processingIncidentId);
|
| | | var npcId = NPCConfig.Get(config.npcId);
|
| | |
|
| | | clientFightBoss = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>((uint)config.npcId, E_ActorGroup.Enemy);
|
| | | clientFightBoss.Pos = bossBornPosition;
|
| | | clientFightBoss.LockTargetSID = PlayerDatas.Instance.PlayerId;
|
| | |
|
| | | PersonalEnemy.Bind(clientFightBoss);
|
| | | PersonalEnemy.Create((uint)config.npcId, E_ActorGroup.Enemy, bossBornPosition);
|
| | | }
|
| | |
|
| | | private void OnReceiveCustomDropItme(HB214_tagMCCuntomFBPrizeInfo package)
|
| | |
| | | {
|
| | | step = Step.Settle;
|
| | | dungeonModel.UpdateCoolDown(DungeonCoolDownType.LeaveMap, 10 * 1000);
|
| | | }
|
| | |
|
| | | private void OnNpcAppear(GA_NpcClientFightNorm _npc)
|
| | | {
|
| | | var config = HazyRegionConfig.Get(hazyRegionModel.processingIncidentId);
|
| | | if (_npc.NpcConfig.NPCID == config.npcId)
|
| | | {
|
| | | clientFightBoss = _npc as GA_NpcClientFightBoss;
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnUpdate()
|
| | |
| | | {
|
| | | base.UnInitialize();
|
| | |
|
| | | if (clientFightBoss != null)
|
| | | {
|
| | | clientFightBoss.ActorInfo.serverDie = true;
|
| | | GAMgr.Instance.ServerDie(clientFightBoss.ServerInstID);
|
| | | GAMgr.Instance.Release(clientFightBoss);
|
| | | clientFightBoss = null;
|
| | | }
|
| | |
|
| | | if (pickItemClock != null)
|
| | | {
|
| | | Clock.Stop(pickItemClock);
|
| | | pickItemClock = null;
|
| | | }
|
| | |
|
| | | if (clientFightBoss != null)
|
| | | {
|
| | | clientFightBoss = null;
|
| | | }
|
| | |
|
| | | ClientDungeonStageUtility.onReceiveCustomDropItme -= OnReceiveCustomDropItme;
|
| | | dungeonModel.onDungeonResultEvent -= OnDungeonResultEvent;
|
| | | ClientDropItemUtility.OnItemPickup -= OnItemPickup; |
| | | ClientDropItemUtility.OnItemPickup -= OnItemPickup;
|
| | | PersonalEnemy.OnNpcAppear -= OnNpcAppear; |
| | | }
|
| | |
|
| | | #if UNITY_EDITOR
|