Пример #1
0
 public void OnShowItems(PaymentManager.EShowItemsResult result, PaymentManager.Product[] products)
 {
     if (!MonoSingleton <PaymentManager> .Instance.IsAvailable)
     {
         this.WaitingForSetup();
     }
     else if (products == null || products.Length <= 0)
     {
         this.Empty();
     }
     else if (result != PaymentManager.EShowItemsResult.SUCCESS)
     {
         this.Failure();
     }
     else
     {
         FlowNode_PaymentGetProducts.Products = products;
         this.Success();
     }
 }
 public void OnShowBundles(PaymentManager.EShowItemsResult result, PaymentManager.Bundle[] bundles)
 {
     if (!MonoSingleton <PaymentManager> .Instance.IsBundleAvailable)
     {
         this.WaitingForSetup();
     }
     else if (bundles == null || bundles.Length <= 0)
     {
         this.Empty();
     }
     else if (result != PaymentManager.EShowItemsResult.SUCCESS)
     {
         this.Failure();
     }
     else
     {
         FlowNode_PaymentGetBundles.Bundles = bundles;
         this.Success();
     }
 }