/// <summary> /// Loads the next room. /// </summary> private void NextRoom() { RoomLoadStarted(); _roomLoader.NextRoom(); foreach (var door in _roomLoader.GetDoors()) { door.Connect("DoorEntered", this, nameof(OnDoorEntered)); } foreach (var monster in _roomLoader.GetEnemies()) { monster.Connect(nameof(AbstractActor.CoinDropped), this, nameof(OnCoinDropped)); monster.Connect(nameof(AbstractActor.Died), this, nameof(OnEnemyDeath)); } RoomLoadFinished(); }