Hello everyone!!
Blockquote
public void MakePurchase(string name) { PurchaseItemRequest request = new PurchaseItemRequest();
request.CatalogVersion = "Items";
request.ItemId = name;
request.VirtualCurrency = "DL";
PlayFabClientAPI.PurchaseItem(request,
result =>
{
UpdateInventory();
},
error =>
{
Debug.Log(error.ErrorMessage);
});
}
Blockquote
whit this code i add just 1 item in inventory... could any of you tell me how I can send the contents of a public static int variable instead of just 1 object?? for example during the game I collect more objects of the same type that I save in the public static int flower; I would like to send the total amount collected with a single call.. could you help me please??