コード例 #1
0
        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);
            }
        }
コード例 #2
0
 internal bool Loading()
 {
     return(GcLeaderboard.GcLeaderboard_Loading(this.m_InternalLeaderboard));
 }
コード例 #3
0
 internal void Dispose()
 {
     GcLeaderboard.GcLeaderboard_Dispose(this.m_InternalLeaderboard);
     this.m_InternalLeaderboard = IntPtr.Zero;
 }
コード例 #4
0
 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);
 }