コード例 #1
0
 private void CheckEnter(Npc npc, Node node)
 {
     if (nodes == null || npc == null)
     {
         Debug.Log(nodes);
         Debug.Log(npc);
         return;
     }
     if (nodes.Contains(node) & npc.CurRoom != this)
     {
         npc.EnterRoom(this);
         Debug.Log(npc + " entered room " + name);
     }
 }