Ejemplo n.º 1
0
        public void AddPlayerScore(int rank, long score, string userName)
        {
            LeaderboardEntryVO entry = new LeaderboardEntryVO(rank, score, userName, false, true);

            this.HasPlayerEntry = true;
            this.playerScore    = entry;
        }
Ejemplo n.º 2
0
        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);
        }