Esempio n. 1
0
 public static void GetMoney()
 {
     PlayFab.ClientModels.GetUserInventoryRequest request = new PlayFab.ClientModels.GetUserInventoryRequest();
     PlayFabClientAPI.GetUserInventory(request, result => {
         MoneyTracker.SetMoneyText(result.VirtualCurrency["NM"]);
     }, error => {});
 }
Esempio n. 2
0
 private void OnLoginSuccess(LoginResult result)
 {
     //for testing the customdata of items
     //Dictionary<string, string> i = new Dictionary<string, string>();
     //i.Add("outfit", "{\"hat\":\"wow\",\"glasses\":\"sunglasses\"}");
     //SetItemCutsomData(i, "891C2D292A879E29", "5055A279219519E2");
     Debug.Log("Logged in!");
     playerId = result.PlayFabId;
     CatInventory.catInv.GetPlayFabDecor();
     PremiumMoneyTracker.SetMoney(result.InfoResultPayload.UserVirtualCurrency["PM"]);
     MoneyTracker.SetMoneyText(result.InfoResultPayload.UserVirtualCurrency["NM"]);
     iap.RefreshIAPItems();
 }