I am trying to store the data I get from a request in a local variable, when its stored it doesn't give an error, but after that, when i try to use it gives me the error of local variable not assigned.
Here is the code:
List<PlayFab.AdminModels.StoreItem> storeList; var request = new PlayFab.AdminModels.GetStoreItemsRequest { StoreId = "Store", }; PlayFabAdminAPI.GetStoreItems(request, result => { storeList = result.Store; }, error => { }); foreach(var i in storeList) { }