Beispiel #1
0
 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()));
 }
Beispiel #2
0
 // Bootstrap the whole thing
 public void Start()
 {
     // Make PlayFab log in
     play = this;
 }