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