Exemplo n.º 1
0
    public bool CompareScore()
    {
        if (currentScore.points > maxScoreByDif[currentDificult].points)
        {
            //Debug.Log("max score raised!! time : " + currentScore.time + " points : " + currentScore.points);

            SetMaxScore(currentScore.points, currentScore.time, currentScore.errors, currentDificult);
            restartMenu.ActivateHighScoreBG(true);
            return(true);
        }
        if (currentScore.points >= maxScoreByDif[currentDificult].points && currentScore.time < maxScoreByDif[currentDificult].time)
        {
            SetMaxScore(currentScore.points, currentScore.time, currentScore.errors, currentDificult);
            restartMenu.ActivateHighScoreBG(true);
            return(true);
        }
        return(false);
    }