npc
This commit is contained in:
parent
e5c5f68ac5
commit
aea6ce1bfa
@ -553,11 +553,12 @@ public class test : MonoBehaviour
|
||||
}
|
||||
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)
|
||||
{
|
||||
if(npcData.UserId == item.npcId)
|
||||
{
|
||||
Debug.Log("================" + v);
|
||||
item.SetNpcDes(v);
|
||||
}
|
||||
}
|
||||
|
@ -150,6 +150,7 @@ public class RecuseNpc : MonoBehaviour
|
||||
|
||||
public void Run(Vector3 target)
|
||||
{
|
||||
Debug.Log(target);
|
||||
if (movebool)
|
||||
{
|
||||
// 确保目标点在 NavMesh 上
|
||||
|
Loading…
Reference in New Issue
Block a user