Exemplo n.º 1
0
 private void CheckForWinner()
 {
     if (_roundManager.HasWinner())
     {
         _roundManager.EndGame(_roundManager.GetWinner());
     }
     else
     {
         StartRound();
     }
 }
Exemplo n.º 2
0
    void EndGameCall()
    {
        rm.EndGame();

        EndGameCanvas.enabled = true;

        if (rm.Player1Score > rm.Player2Score)
        {
            PlayerWinText.text = "Player 1 Won";
        }
        else
        {
            PlayerWinText.text = "Player 2 Won";
        }
    }