This commit is contained in:
huyulong 2024-12-16 09:42:44 +08:00
parent 1eeb4cd49b
commit 9233e9377d
3 changed files with 3 additions and 2 deletions

View File

@ -558,7 +558,7 @@ public class test : MonoBehaviour
{
if (npcData.UserId == item.npcId)
{
Debug.Log("================" + v);
//Debug.Log("================" + v);
item.SetNpcDes(v);
}
}

View File

@ -28,6 +28,7 @@ public class NPCController : MonoBehaviour
GameObject go = GameObject.Instantiate(npc, v, Quaternion.identity); // 直接指定位置和旋转
RecuseNpc recuseNpc = go.GetComponent<RecuseNpc>();
recuseNpc.SetNPCInfo(npcData.UserId);//初始化npcid
Debug.Log(npcData.UserId);
npcsList.Add(recuseNpc);//将生成的NPC的脚本加入list存放
}

@ -1 +1 @@
Subproject commit 0385375c1818fc57f42407a6c5301a26ded3a19a
Subproject commit 2e42b278d4c6ac9e045925dcc6e04896a19cbfd8