public static void PlayFabErrorCallback(PlayFab.PlayFabError error) { if (OnPlayFabCallbackError != null) { OnPlayFabCallbackError(error.ErrorMessage, PlayFabAPIMethods.Generic, MessageDisplayStyle.error); } }
void OnInventoryResponse(PlayFabPlayerInventoryCore inventory, PlayFab.PlayFabError error) { PlayFab.Player.Inventory.OnResponse -= OnInventoryResponse; if (error == null) { Popup.Hide(); UpdateState(); } else { Popup.Show(error.ErrorMessage, Popup.Hide, "Close"); } }
void OnResponse(PlayFabUpgradeCore.ResultData result, PlayFab.PlayFabError error) { PlayFab.Upgrade.OnResponse -= OnResponse; if (error == null) { Popup.Show(Core.Localization.Phrases.Get("Retrieving Inventory")); PlayFab.Player.Inventory.Request(); PlayFab.Player.Inventory.OnResponse += OnInventoryResponse; } else { Popup.Show(error.ErrorMessage, Popup.Hide, "Close"); } }
void LoginFailure(PlayFab.PlayFabError error) { ((UUnitTestContext)error.CustomData).Fail("PubSub UnitTest Login Failed with the message: " + error.GenerateErrorReport()); }