diff --git a/xiaofang/Assets/Script/npc/RecuseNpc.cs b/xiaofang/Assets/Script/npc/RecuseNpc.cs index 03220152..1b102ce7 100644 --- a/xiaofang/Assets/Script/npc/RecuseNpc.cs +++ b/xiaofang/Assets/Script/npc/RecuseNpc.cs @@ -100,7 +100,7 @@ public class RecuseNpc : MonoBehaviour tar = hit.position; // 将目标点调整到最近的导航网格位置 } Debug.Log("进入奔跑++++++="); - targetPoints.Clear(); + //targetPoints.Clear(); targetPoints.Add(tar); @@ -128,7 +128,7 @@ public class RecuseNpc : MonoBehaviour if (targetPoints.Count > 0 && currentTarget != null) { - currentTarget = targetPoints[0]; + currentTarget = targetPoints[targetPoints.Count-1]; nstate = Npcstate.run; movebool = true;