so i got this code
static void OnLogin(LoginResult result) { LoginData.Instance.SaveUser(); Debug.Log("Loged in with: " + result.PlayFabId); GetUserInventory(); UIThings.Instance.LoginRect.SetActive(false); //Join Server List } public static void GetUserInventory() { PlayFabClientAPI.GetUserInventory(new GetUserInventoryRequest(), UserInventoryRe sult, OnAPIError); } public static void UserInventoryResult(GetUserInventoryResult result) { Debug.Log(result.Inventory); //Get The Player's Inventory }
can someone give me a simple start
so i get this response
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 { "code": 200, "status": "OK", "data": { "Inventory": [ { "ItemId": "IronOre", "ItemInstanceId": "9879843", "ItemClass": "Items", "CatalogVersion": "5", "UnitPrice": 0 }, { "ItemId": "GoldOre", "ItemInstanceId": "3854637", "ItemClass": "Items", "CatalogVersion": "5", "UnitPrice": 0 } ], "VirtualCurrency": { "GC": 100 }, "VirtualCurrencyRechargeTimes": { "GC": { "SecondsToRecharge": 500, "RechargeTime": "Date", "RechargeMax": 50 } } } }
what to do ?