public void AddPlayerScore(int rank, long score, string userName) { LeaderboardEntryVO entry = new LeaderboardEntryVO(rank, score, userName, false, true); this.HasPlayerEntry = true; this.playerScore = entry; }
public void AddScore(int rank, long score, string userName, bool isFriend, bool isPlayer) { if (rank <= 0) { return; } LeaderboardEntryVO entry = new LeaderboardEntryVO(rank, score, userName, isFriend, isPlayer); if (isPlayer) { this.playerScore = entry; this.HasPlayerEntry = true; } this.entries.Add(entry); }