예제 #1
0
 public void Spawn(GameObject prefab, Navigator navigator)
 {
     if (!spawned)
     {
         SO.Spawn(prefab, GetWorldPos(), navigator, objects[DoorPosition.North], objects[DoorPosition.South], objects[DoorPosition.East], objects[DoorPosition.West]);
         navigator.AddRoom(SO);
         spawned = true;
     }
 }