Exemplo n.º 1
0
    //check scores and determine if human won or lost
    private void WinTest()
    {
        if (playerLeft.playerScore >= 11)
        {
            ShowInfo("YOU LOSE!!!");
            gameOver = true;
            _uiButtons.DisplayLeaderBoard(true);
        }

        if (playerRight.playerScore < 11)
        {
            return;
        }
        ShowInfo("YOU WIN!!!");
        gameOver   = true;
        _highScore = (float)playerRight.playerScore / playerLeft.playerScore;
        _uiButtons.DisplayLeaderBoard(true);
        _uiButtons.UpdateRecords(_highScore);
    }