public void LoadScores(ILeaderboard board, Action <bool> callback)
        {
            if (!this.IsAuthenticated())
            {
                Logger.e("LoadScores can only be called after authentication.");
                if (callback != null)
                {
                    callback(false);
                }
            }
            LeaderboardTimeSpan timeSpan;

            switch ((int)board.get_timeScope())
            {
            case 0:
                timeSpan = LeaderboardTimeSpan.Daily;
                break;

            case 1:
                timeSpan = LeaderboardTimeSpan.Weekly;
                break;

            case 2:
                timeSpan = LeaderboardTimeSpan.AllTime;
                break;

            default:
                timeSpan = LeaderboardTimeSpan.AllTime;
                break;
            }
            ((PlayGamesLeaderboard)board).loading = true;
            Logger.d("LoadScores, board=" + (object)board + " callback is " + (object)callback);
            this.mClient.LoadScores(board.get_id(), LeaderboardStart.PlayerCentered, board.get_range().count <= 0 ? this.mClient.LeaderboardMaxResults() : (int)board.get_range().count, board.get_userScope() != 1 ? LeaderboardCollection.Public : LeaderboardCollection.Social, timeSpan, (Action <LeaderboardScoreData>)(scoreData => this.HandleLoadingScores((PlayGamesLeaderboard)board, scoreData, callback)));
        }
        public void LoadScores(ILeaderboard board, Action <bool> callback)
        {
            //IL_004e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0053: Unknown result type (might be due to invalid IL or missing references)
            //IL_0054: Unknown result type (might be due to invalid IL or missing references)
            //IL_0055: Expected I4, but got Unknown
            //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fb: Unknown result type (might be due to invalid IL or missing references)
            //IL_0100: Unknown result type (might be due to invalid IL or missing references)
            //IL_011f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0125: Invalid comparison between Unknown and I4
            if (!IsAuthenticated())
            {
                Logger.e("LoadScores can only be called after authentication.");
                if (callback != null)
                {
                    callback(false);
                }
            }
            else
            {
                TimeScope           timeScope = board.get_timeScope();
                LeaderboardTimeSpan timeSpan;
                switch ((int)timeScope)
                {
                case 2:
                    timeSpan = LeaderboardTimeSpan.AllTime;
                    break;

                case 1:
                    timeSpan = LeaderboardTimeSpan.Weekly;
                    break;

                case 0:
                    timeSpan = LeaderboardTimeSpan.Daily;
                    break;

                default:
                    timeSpan = LeaderboardTimeSpan.AllTime;
                    break;
                }
                ((PlayGamesLeaderboard)board).loading = true;
                Logger.d("LoadScores, board=" + board + " callback is " + callback);
                IPlayGamesClient playGamesClient = mClient;
                string           id    = board.get_id();
                Range            range = board.get_range();
                int rowCount;
                if (range.count > 0)
                {
                    Range range2 = board.get_range();
                    rowCount = range2.count;
                }
                else
                {
                    rowCount = mClient.LeaderboardMaxResults();
                }
                playGamesClient.LoadScores(id, LeaderboardStart.PlayerCentered, rowCount, ((int)board.get_userScope() != 1) ? LeaderboardCollection.Public : LeaderboardCollection.Social, timeSpan, delegate(LeaderboardScoreData scoreData)
                {
                    HandleLoadingScores((PlayGamesLeaderboard)board, scoreData, callback);
                });
            }
        }