コード例 #1
0
    void LeaderBoardResult(PlayFab.ServerModels.GetLeaderboardResult s)
    {
        var leaderBoard = s.Leaderboard;

        for (int i = 0; i < leaderBoard.Count; i++)
        {
            textEntries[i].Setup(i + 1, leaderBoard[i].DisplayName, leaderBoard[i].StatValue);
        }
    }
コード例 #2
0
 private void GetServerLbCallback(PlayFab.ServerModels.GetLeaderboardResult result)
 {
     if (result.Leaderboard.Count > 0)
     {
         lastReceivedMessage = "Get Server Leaderboard Successful";
     }
     else
     {
         lastReceivedMessage = "Get Server Leaderboard, empty";
     }
 }