예제 #1
0
    private void EndLevelHandler()
    {
        _previousRoom = _currentRoom;

        if (++_currentRoomIndex >= _rooms.Count)
        {
            PlayerWin?.Invoke();
        }
        else
        {
            RoomChange(_currentRoomIndex);
        }
    }
예제 #2
0
 public static void OnPlayerWin()
 {
     PlayerWin?.Invoke();
 }
예제 #3
0
 public void OnPlayerWin(EventArgs e)
 {
     PlayerWin?.Invoke(this, e);
 }