diff --git a/Assets/Scripts/LevelController.cs b/Assets/Scripts/LevelController.cs index 509b57a..a7f78f1 100644 --- a/Assets/Scripts/LevelController.cs +++ b/Assets/Scripts/LevelController.cs @@ -68,6 +68,7 @@ public void GenerateNext() floorInfo.DoorWest.SetActive(false); } } + nextLevel = Instantiate(prefab, new Vector3(nextSpawnX, -YDISTANCE * (i + 1), nextSpawnZ), prefab.transform.rotation); }