public void Show() { if (state == UIState.Active || state == UIState.Showing) { return; } state = UIState.Showing; if (gameObject.activeSelf == false) { gameObject.SetActive(true); } Debug.Log("SHOW"); ShowStarted?.Invoke(this); if (inAnimation) { inAnimation.AnimateIn(rectTransform, canvasGroup); } state = UIState.Active; }
/// <summary> /// Handler method for when the <see cref="uiView"/> component's <see cref="UIView.ShowBehavior"/> starts. /// </summary> protected virtual void OnShowStarted() { ShowStarted?.Invoke(this); }