Esempio n. 1
0
 public virtual bool SaveScore(HighScore score, int topRange = 10)
 {
     ScoresList.Add(score);
     ScoresList.Sort();
     return(ScoresList.IndexOf(score) < topRange);
 }
Esempio n. 2
0
        public virtual bool SaveCurrentScore(int topRange = 10)
        {
            HighScore highscore = new HighScore(GetPlayerName(), Score);

            return(SaveScore(highscore, topRange));
        }