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

            return(SaveScore(highscore, topRange));
        }