From f54a037a46ff72bc6ed4c3f4a392c2f6c2db8009 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 14 三月 2019 21:04:02 +0800
Subject: [PATCH] 6317 【前端】【2.0】场景化单机战斗 战斗NPC寻路
---
Fight/MapTransferUtility.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index c8c4128..a0058a0 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -228,8 +228,13 @@
GActor _npc = GAMgr.Instance.GetCloserNPC(_hero.Pos, npcID);
if (_npc != null)
{
- //Debug.LogFormat(" |-- 鍦ㄨ閲庡唴");
_destPostion = _npc.Pos;
+
+ NpcID = npcID;
+ MapTransferDoType = E_MapTransferDoType.Npc;
+
+ _hero.MoveToPosition(_destPostion);
+ yield break;
}
}
else
--
Gitblit v1.8.0