Example #1
0
 public void BuyIAPPProduct(IAPProduct product)
 {
     Executer.GetInstance().AddJob(() =>
     {
         GoogleIAPManager.GetInstance().BuyProduct(product.id);
     });
 }
Example #2
0
 private void Awake()
 {
     product = GoogleIAPManager.GetInstance().GetProductWithID(id);
     price   = (float)product.metadata.localizedPrice;
     base.Awake();
     priceText.text += " €";
 }
Example #3
0
 private void OnDisable()
 {
     GoogleAdsManager.GetInstance().UnsubscribeToRewardClaimed(AdRewardEarned);
     GoogleIAPManager.GetInstance().UnsubscribeToProductPurchased(IapProductPurchased);
 }