public void LoadScores(ILeaderboard board, Action <bool> callback) { bool flag = !this.VerifyAuthentication(); if (flag) { bool flag2 = callback != null; if (flag2) { callback(false); } } else { Leaderboard leaderboard = (Leaderboard)board; GcLeaderboard gcLeaderboard = new GcLeaderboard(leaderboard); GameCenterPlatform.m_GcBoards.Add(gcLeaderboard); string[] array = leaderboard.GetUserFilter(); bool flag3 = array.Length == 0; if (flag3) { array = null; } gcLeaderboard.Internal_LoadScores(board.id, board.range.from, board.range.count, array, (int)board.userScope, (int)board.timeScope, callback); } }
internal bool Loading() { return(GcLeaderboard.GcLeaderboard_Loading(this.m_InternalLeaderboard)); }
internal void Dispose() { GcLeaderboard.GcLeaderboard_Dispose(this.m_InternalLeaderboard); this.m_InternalLeaderboard = IntPtr.Zero; }
internal void Internal_LoadScores(string category, int from, int count, string[] userIDs, int playerScope, int timeScope, object callback) { this.m_InternalLeaderboard = GcLeaderboard.GcLeaderboard_LoadScores(this, category, from, count, userIDs, playerScope, timeScope, callback); }