public RewardedAd() { if (Application.platform == RuntimePlatform.Android) { this.client = new DclickUnityAds.Android.RewardedAd(); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { this.client = new DclickUnityAds.iOS.RewardedAd(); } }
public bool Play(System.Action <AdFinishedEventArgs> adFinishedCallback) { IRewardedAd ad = GetReadyAd(); if (ad == null) { return(false); } return(ad.Play(adFinishedCallback)); }
public void Add(IRewardedAd ad) { m_ads.Add(ad); }