Exemplo n.º 1
0
    // Passes total score to EndGame
    public void TotalScore()
    {
        int count = totalScore.Count;

        if (count != 0)                                 // Required or savedRolls could equal -1
        {
            int cumulative = totalScore[count - 1];
            gameEnd.UpdateScore(cumulative);
        }
    }