private void OnShowAdsScreen(object sender, OnShowAdsScreen eventargs) { foreach (IAnalytics analytics in this.analytics) { analytics.OnShowAdsScreen(); } }
public void Show() { OnShowAdsScreen onShowAdsScreen = new OnShowAdsScreen(); EventManager.Dispatch(onShowAdsScreen); this.canvasGroup.alpha = 0; this.canvasGroup.interactable = false; this.gameObject.SetActive(true); LeanTween.value(this.gameObject, f => { this.canvasGroup.alpha = f; this.canvasGroup.interactable = true; }, 0, 1, 0.33f).setDelay(1).setEase(LeanTweenType.easeOutSine); }