Пример #1
0
 public static HCController Instance()
 {
     if (instance == null)
     {
         instance = new HCController();
         instance.Initialize();
     }
     return(instance);
 }
 public bool ShowInterstitial()
 {
     if (this.interstitial.IsLoaded())
     {
         this.interstitial.Show();
         HCController.Instance().SendAdjustEvent(HCConstants.ADJUST_AD_INTERSTITIAL_IMPRESSION);
         return(true);
     }
     this.RequestInterstitial();
     return(false);
 }
 public bool ShowRewardedVideoAd()
 {
     if (rewardBasedVideo.IsLoaded())
     {
         rewardBasedVideo.Show();
         HCController.Instance().SendAdjustEvent(HCConstants.ADJUST_AD_REWARDED_IMPRESSION);
         return(true);
     }
     this.RequestRewardBasedVideo();
     return(false);
 }