public void AddScore(Score score) { int i; for (i = 0; i < scores.Count; i++) { if (score.points > scores[i].points) break; } if (i < MAX_SCORE) { scores.Insert(i, score); } if (scores.Count > MAX_SCORE) { scores.RemoveRange(MAX_SCORE, scores.Count - MAX_SCORE); } }
public PlayerProgress(Score score, LevelStage levelStage) { Score = score; WorldData = new WorldData(levelStage); }