public void NextRoom() { currentRoom.Exit(); currentRoomIndex = (currentRoomIndex + 1) % rooms.Length; if (currentRoomIndex == 0) { Exit(); return; } currentRoom = rooms[currentRoomIndex]; currentRoom.Enter(); }
public void Enter() { if (!currentRoom) { Debug.LogError("No starting room was found!"); return; } bossCombatLevel = BossRoom.Boss.Enemy.Stats.CombatLevel; TeleportPlayers(); currentRoom.Enter(); NextRoom(); // Skip the starting room so we can get going! }