private void OnClickFreeBtn() { void onSuccess() { Debug.Log(" ironsource success"); playerShop.AddBought(ShopEnum.RAW_PACK_FREE, id); AddRewards(); } IronSourceManager.instance.ShowRewardedVideo(onSuccess); }
private void OnClickPurchase() { void onSuccess() { Debug.Log(" IAP success"); playerShop.AddBought(ShopEnum.BUNDLE, id); AddRewards(); } IAPManager.Instance.Buy(info.packnameIap, onSuccess); }