private void OnDisable() { if (--Count == 0) { StencilAds.ShowBanner(); } }
private void Awake() { this.Bind(); button = button ?? GetComponent <Button>(); _ad = StencilAds.GetAdByType(adType); button.onClick.AddListener(() => StartCoroutine(_ShowAd())); }
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()); }
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); }); }
private void OnEnable() { Count++; StencilAds.HideBanner(); }