예제 #1
0
        public bool IsPlacementReady(AdsPlacement placement)
        {
            var adsIndex = adsInfos.FindIndex(x => x.placement == placement.Id);

            return(adsIndex == -1 ||
                   adsInfos[adsIndex].startTime + placement.Cooldown < DateTime.Now.ToUnixTime());
        }
예제 #2
0
 public override void Show(AdsPlacement placement)
 {
     base.Show(placement);
     OnAdsCompleted();
 }
 public override void Show(AdsPlacement placement)
 {
     base.Show(placement);
     IronSource.Agent.showRewardedVideo(placement.Id);
 }
 public virtual void OnAdsFailed()
 {
     CurrentPlacement?.OnAdsFailed();
     CurrentPlacement = null;
 }
 public virtual void OnAdsCompleted()
 {
     CurrentPlacement?.OnAdsCompleted();
     CurrentPlacement = null;
 }
 public virtual void Show(AdsPlacement placement)
 {
     CurrentPlacement = placement;
 }