From e5c5f68ac53c48a087e5b39fa12227341e2e3941 Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Sat, 14 Dec 2024 14:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BB=E8=B7=AF=E7=9B=B8=E5=85=B3=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/ProtoBuf/test.cs | 4 ++-- xiaofang/Assets/Script/npc/RecuseNpc.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index 226a0449..02becf74 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -539,9 +539,9 @@ public class test : MonoBehaviour break; case "move.Location": - Debug.Log("move.Location½ÓÊܵ½ÁË"); + //Debug.Log("move.Location½ÓÊܵ½ÁË"); NpcData npcData = ProtoBufffer.DeSerialize(bytes); - Debug.Log(npcData); + //Debug.Log(npcData); if(npcData.Type == 1)//npc´´½¨ { float x = -float.Parse(npcData.X.ToString()); diff --git a/xiaofang/Assets/Script/npc/RecuseNpc.cs b/xiaofang/Assets/Script/npc/RecuseNpc.cs index 95bca509..5524796e 100644 --- a/xiaofang/Assets/Script/npc/RecuseNpc.cs +++ b/xiaofang/Assets/Script/npc/RecuseNpc.cs @@ -86,6 +86,7 @@ public class RecuseNpc : MonoBehaviour //添加npc的目的地到list中 public void SetNpcDes(Vector3 tar) { + Debug.Log(tar); //target.position = tar; NavMeshHit hit; if (!NavMesh.SamplePosition(tar, out hit, 1.0f, NavMesh.AllAreas))