Example #1
0
 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();
     }
 }
Example #2
0
        public bool Play(System.Action <AdFinishedEventArgs> adFinishedCallback)
        {
            IRewardedAd ad = GetReadyAd();

            if (ad == null)
            {
                return(false);
            }

            return(ad.Play(adFinishedCallback));
        }
Example #3
0
 public void Add(IRewardedAd ad)
 {
     m_ads.Add(ad);
 }