Ejemplo n.º 1
0
    public void NextRoom()
    {
        currentRoom.Exit();
        currentRoomIndex = (currentRoomIndex + 1) % rooms.Length;
        if (currentRoomIndex == 0)
        {
            Exit();
            return;
        }

        currentRoom = rooms[currentRoomIndex];
        currentRoom.Enter();
    }
Ejemplo n.º 2
0
    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!
    }