//[Button("Function")]
        #region PlayFab Multiplayer Server
        private void ListBuildSummaries()
        {
            if (!PlayFabAuthenticationAPI.IsEntityLoggedIn())
            {
                PlayFabGeneral.GetEntityToken();
            }

            ListBuildSummariesRequest request = new ListBuildSummariesRequest();

            PlayFabMultiplayerAPI.ListBuildSummaries(request, ListBuildSummariesResponseSuccess, PlayFabGeneral.Error, null, null);
        }
Esempio n. 2
0
 public void ListBuilds()
 {
     ShowLoader();
     PlayFabMultiplayerAPI.ListBuildSummaries(new ListBuildSummariesRequest {
     },
                                              result => {
         HideLoader();
         if (result.BuildSummaries.Count > 0)
         {
             EnumerateBuilds(result);
         }
         else
         {
             Inform("No servers were found.");
         }
         Debug.Log("Build summaries result: " + result.ToJson());
     },
                                              error => {
         Inform("Error: " + error.ErrorMessage);
         Debug.LogError("Build Summaries ERROR: " + error.GenerateErrorReport());
     });
 }