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