111
This commit is contained in:
parent
1eeb4cd49b
commit
9233e9377d
@ -558,7 +558,7 @@ public class test : MonoBehaviour
|
||||
{
|
||||
if (npcData.UserId == item.npcId)
|
||||
{
|
||||
Debug.Log("================" + v);
|
||||
//Debug.Log("================" + v);
|
||||
item.SetNpcDes(v);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user