Merge branch 'WES-204-user-progress-bug' into 'development'

Resolve WES-204 "User progress bug"

See merge request wesign/unity-application!97
This commit was merged in pull request #97.
This commit is contained in:
Louis Adriaens
2023-05-13 13:18:38 +00:00

View File

@@ -129,7 +129,7 @@ public abstract class AbstractMinigameController : AbstractFeedback
highestScores.Sort((a, b) => b.scoreValue.CompareTo(a.scoreValue));
// Only save the top 10 scores, so this list doesn't keep growing endlessly
progress.latestScores = latestScores.Take(10).ToList();
progress.latestScores = latestScores.TakeLast(10).ToList();
progress.highestScores = highestScores.Take(10).ToList();
PersistentDataController.GetInstance().Save();