Beispiel #1
0
        private void OnLeaderboardRetrievedCallback(ref LeaderboardFindResult_t findLearderboardResult)
        {
            Leaderboard leaderboard = (Leaderboard)null;

            if ((int)findLearderboardResult.m_bLeaderboardFound != 0)
            {
                leaderboard = new Leaderboard(this, findLearderboardResult.m_hSteamLeaderboard, Leaderboards.SteamUnityAPI_SteamUserStats_GetLeaderboardName(this._stats, findLearderboardResult.m_hSteamLeaderboard), Leaderboards.SteamUnityAPI_SteamUserStats_GetLeaderboardEntryCount(this._stats, findLearderboardResult.m_hSteamLeaderboard), Leaderboards.SteamUnityAPI_SteamUserStats_GetLeaderboardSortMethod(this._stats, findLearderboardResult.m_hSteamLeaderboard), Leaderboards.SteamUnityAPI_SteamUserStats_GetLeaderboardDisplayType(this._stats, findLearderboardResult.m_hSteamLeaderboard));
                this.Add(leaderboard);
            }
            this._onLeaderboardRetrieved(leaderboard);
        }
Beispiel #2
0
 private void OnLeaderboardRetrievedCallback(ref LeaderboardFindResult_t findLearderboardResult)
 {
     if ((int)findLearderboardResult.m_bLeaderboardFound != 0)
     {
         this._leaderboard     = findLearderboardResult.m_hSteamLeaderboard;
         this._leaderboardName = Leaderboard.SteamUnityAPI_SteamUserStats_GetLeaderboardName(this._stats, findLearderboardResult.m_hSteamLeaderboard);
         this._sortMethod      = Leaderboard.SteamUnityAPI_SteamUserStats_GetLeaderboardSortMethod(this._stats, findLearderboardResult.m_hSteamLeaderboard);
         this._displayType     = Leaderboard.SteamUnityAPI_SteamUserStats_GetLeaderboardDisplayType(this._stats, findLearderboardResult.m_hSteamLeaderboard);
     }
     this._onLeaderboardRetrieved(this);
 }
Beispiel #3
0
 private void OnLeaderboardRetrievedCallback(ref LeaderboardFindResult_t findLearderboardResult)
 {
   if ((int) findLearderboardResult.m_bLeaderboardFound != 0)
   {
     this._leaderboard = findLearderboardResult.m_hSteamLeaderboard;
     this._leaderboardName = Leaderboard.SteamUnityAPI_SteamUserStats_GetLeaderboardName(this._stats, findLearderboardResult.m_hSteamLeaderboard);
     this._sortMethod = Leaderboard.SteamUnityAPI_SteamUserStats_GetLeaderboardSortMethod(this._stats, findLearderboardResult.m_hSteamLeaderboard);
     this._displayType = Leaderboard.SteamUnityAPI_SteamUserStats_GetLeaderboardDisplayType(this._stats, findLearderboardResult.m_hSteamLeaderboard);
   }
   this._onLeaderboardRetrieved(this);
 }