This commit is contained in:
huyulong 2024-12-14 14:42:47 +08:00
parent e5c5f68ac5
commit aea6ce1bfa
2 changed files with 3 additions and 1 deletions

View File

@ -553,11 +553,12 @@ public class test : MonoBehaviour
} }
if(npcData.Type == 2)//npcÒÆ¶¯ if(npcData.Type == 2)//npcÒÆ¶¯
{ {
Vector3 v = new Vector3(float.Parse(npcData.X.ToString()), float.Parse(npcData.Y.ToString()), float.Parse(npcData.Z.ToString())); Vector3 v = new Vector3(-float.Parse(npcData.X.ToString()), float.Parse(npcData.Y.ToString()), float.Parse(npcData.Z.ToString()));
foreach(RecuseNpc item in NPCController.instance.npcsList) foreach(RecuseNpc item in NPCController.instance.npcsList)
{ {
if(npcData.UserId == item.npcId) if(npcData.UserId == item.npcId)
{ {
Debug.Log("================" + v);
item.SetNpcDes(v); item.SetNpcDes(v);
} }
} }

View File

@ -150,6 +150,7 @@ public class RecuseNpc : MonoBehaviour
public void Run(Vector3 target) public void Run(Vector3 target)
{ {
Debug.Log(target);
if (movebool) if (movebool)
{ {
// 确保目标点在 NavMesh 上 // 确保目标点在 NavMesh 上