Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 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);
 }