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 += " €"; }
void OnEnable() { if (instance == null) { instance = this; } else { Destroy(gameObject); return; } DontDestroyOnLoad(gameObject); if (storeController == null) { InitializePurchasing(); } }
private void OnDisable() { GoogleAdsManager.GetInstance().UnsubscribeToRewardClaimed(AdRewardEarned); GoogleIAPManager.GetInstance().UnsubscribeToProductPurchased(IapProductPurchased); }