| | |
| | | using H2Engine; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | |
| | | } |
| | | |
| | | public Vector3 lastDeadPos { get; set; } |
| | | |
| | | private bool HasStartCheck = false; |
| | | public void NpcDead(int eventID, GActor npc, int npcID) |
| | | { |
| | | if (eventID < 0 || npc == null) |
| | |
| | | lastDeadPos = npc.Pos; |
| | | } |
| | | |
| | | private IEnumerator DoWaitFakePickup() |
| | | { |
| | | yield return WaitingForSecondConst.WaitMS500; |
| | | while (ClientDropItemUtility.Instance.HasDropItem()) |
| | | { |
| | | yield return null; |
| | | } |
| | | |
| | | CA225_tagCMClientTaskCount _a225 = new CA225_tagCMClientTaskCount |
| | | { |
| | | CountID = 10001 |
| | | }; |
| | | GameNetSystem.Instance.SendInfo(_a225); |
| | | } |
| | | |
| | | public void Handle_0820(H0820_tagMissionDict package) |
| | | { |
| | | if (package.DictKey.Equals("gonpc")) |
| | | { |
| | | MapTransferUtility.Instance.MoveToNPC((int)package.DictValue); |
| | | } |
| | | |
| | | m_ReadyRemoveTriggerList.Clear(); |
| | | |
| | | foreach (var _triggerID in m_TriggerIDToMissionIDDict.Keys) |
| | |
| | | m_TriggerIDToMissionIDDict.Remove(_id); |
| | | } |
| | | |
| | | |
| | | if (package.DictKey.Equals("riggerID")) |
| | | { |
| | | int _triggerID = (int)package.DictValue; |
| | |
| | | { |
| | | SnxxzGame.Instance.StartCoroutine(DelayUnTrigger(_removeTriggerID)); |
| | | } |
| | | SnxxzGame.Instance.StartCoroutine(DoWaitFakePickup()); |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | m_EventHandlerDict.Add(_refreshEvent.GetEventID(), _refreshEvent); |
| | | } |
| | | HasStartCheck = false; |
| | | } |
| | | } |
| | | |