Example #1
0
    // Check if the user got a new high score
    private bool DetermineIfIsNewScore(int totalMoney)
    {
        int highestScore = loadManager.LoadAllTimeMaxScore();

        if (totalMoney > highestScore)
        {
            saveManager.SaveAllTimeMaxScore(totalMoney);

            return(true);
        }
        else
        {
            return(false);
        }
    }