public void RefreshIAPItems() { play = this; PlayFabClientAPI.GetCatalogItems(new GetCatalogItemsRequest(), result => { Catalog = result.Catalog; if (!IsInitialized) { Debug.Log("IAP not initialized."); } PopulateIAPItems(); // Make UnityIAP initialize InitializePurchasing(); }, error => Debug.LogError(error.GenerateErrorReport())); }
// Bootstrap the whole thing public void Start() { // Make PlayFab log in play = this; }