public void AddScore(Leaderboard.Entry entry) { Scores.Add(entry); UpdateLeaderboardDb(); //Sort Scores.Sort((x, y) => y.score.CompareTo(x.score)); WriteScoresToUI(); }
// Token: 0x0600237D RID: 9085 RVA: 0x0009B160 File Offset: 0x00099360 private static LeaderboardController.LeaderboardInfo LeaderboardInfoFromSteamLeaderboardEntry(Leaderboard.Entry entry) { SurvivorIndex survivorIndex = SurvivorIndex.None; int num = (entry.SubScores != null && entry.SubScores.Length >= 1) ? entry.SubScores[1] : 0; if (num >= 0 && num < SurvivorCatalog.survivorCount) { survivorIndex = (SurvivorIndex)num; } return(new LeaderboardController.LeaderboardInfo { timeInSeconds = (float)entry.Score * 0.001f, survivorIndex = survivorIndex, userSteamID = entry.SteamId, rank = entry.GlobalRank }); }