private void EndLevelHandler() { _previousRoom = _currentRoom; if (++_currentRoomIndex >= _rooms.Count) { PlayerWin?.Invoke(); } else { RoomChange(_currentRoomIndex); } }
public static void OnPlayerWin() { PlayerWin?.Invoke(); }
public void OnPlayerWin(EventArgs e) { PlayerWin?.Invoke(this, e); }