예제 #1
0
 private void OnDisable()
 {
     if (--Count == 0)
     {
         StencilAds.ShowBanner();
     }
 }
예제 #2
0
 private void Awake()
 {
     this.Bind();
     button = button ?? GetComponent <Button>();
     _ad    = StencilAds.GetAdByType(adType);
     button.onClick.AddListener(() => StartCoroutine(_ShowAd()));
 }
예제 #3
0
 protected override void OnAwake()
 {
     base.OnAwake();
     if (_init)
     {
         return;
     }
     _init = true;
     IronSource.Agent.shouldTrackNetworkState(AdSettings.Instance.trackNetworkState);
     IronSource.Agent.init(AdSettings.Instance.ironSourceId, REWARDED_VIDEO, INTERSTITIAL);
     Validate();
     StencilAds.Init(new IronSrcRewarded(), new IronSrcInterstitial());
 }
예제 #4
0
        private void Awake()
        {
            if (Button == null)
            {
                Button = GetComponent <Button>();
            }
            if (CanvasGroup == null)
            {
                CanvasGroup = GetComponent <CanvasGroup>();
            }

            _ad = StencilAds.GetAdByType(AdType);
            Button.onClick.AddListener(() =>
            {
                _ad.ShowOnResult(_OnResult);
            });
        }
예제 #5
0
 private void OnEnable()
 {
     Count++;
     StencilAds.HideBanner();
 }