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