| | |
| | | {
|
| | | yield break;
|
| | | }
|
| | |
|
| | | var sid = data.sid;
|
| | | NpcID = data.npcID;
|
| | | MapTransferDoType = E_MapTransferDoType.Npc;
|
| | |
| | | private void MoveToExistNpc(int npcID, GActor npc)
|
| | | {
|
| | | GA_Hero _hero = PlayerDatas.Instance.hero;
|
| | | Debug.Log("11111111111111");
|
| | |
|
| | | NPCConfig _config = NPCConfig.Get(npcID);
|
| | |
|
| | |
| | | {
|
| | | _hero.LockTarget = npc;
|
| | | _hero.SelectTarget = npc;
|
| | |
|
| | | Clear();
|
| | | NPCInteractProcessor.InvokeEvent((E_NpcType)_config.NPCType, npcID, npc.ServerInstID);
|
| | |
|
| | | Vector3 _npc2heroDir = MathUtility.ForwardXZ(npc.Pos, _hero.Pos);
|
| | |
| | | if (_chkDistSqrt <= Mathf.Pow(_chkDist, 2))
|
| | | {
|
| | | Clear();
|
| | | HeroAIRecorder.ClearRecord();
|
| | | NPCInteractProcessor.InvokeEvent((E_NpcType)_npcConfig.NPCType, _npcConfig.NPCID, _npc.ServerInstID);
|
| | | _hero.LockTarget = _npc;
|
| | | _hero.SelectTarget = _npc;
|