diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index a1f356a1..d1d3ba43 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -558,7 +558,7 @@ public class test : MonoBehaviour { if (npcData.UserId == item.npcId) { - Debug.Log("================" + v); + //Debug.Log("================" + v); item.SetNpcDes(v); } } diff --git a/xiaofang/Assets/Script/hylScripts/NPCController.cs b/xiaofang/Assets/Script/hylScripts/NPCController.cs index 193eba32..933ac4cb 100644 --- a/xiaofang/Assets/Script/hylScripts/NPCController.cs +++ b/xiaofang/Assets/Script/hylScripts/NPCController.cs @@ -28,6 +28,7 @@ public class NPCController : MonoBehaviour GameObject go = GameObject.Instantiate(npc, v, Quaternion.identity); // 直接指定位置和旋转 RecuseNpc recuseNpc = go.GetComponent(); recuseNpc.SetNPCInfo(npcData.UserId);//初始化npcid + Debug.Log(npcData.UserId); npcsList.Add(recuseNpc);//将生成的NPC的脚本加入list存放 } diff --git a/xiaofang/Assets/UnityCommon b/xiaofang/Assets/UnityCommon index 0385375c..2e42b278 160000 --- a/xiaofang/Assets/UnityCommon +++ b/xiaofang/Assets/UnityCommon @@ -1 +1 @@ -Subproject commit 0385375c1818fc57f42407a6c5301a26ded3a19a +Subproject commit 2e42b278d4c6ac9e045925dcc6e04896a19cbfd8