Exemplo n.º 1
0
 /// <summary>
 /// This method ends the game and asks for which player has won the game when ended.
 /// </summary>
 /// <param name="winner">The winner of the game which was played</param>
 public void EndGameWinCondition(GamePlayer winner)
 {
     _gameBlockSystem.EndBlockCycle();
     _gameBlockSystem.Destroy();
     PopUpSystem.Instance.CreatePopUp <WinScreenPopUp>("WinScreenPopUp").SetWinner(winner, Playfield.GetCornerByFaction(winner.FactionType));
 }