public virtual void Focus() { if (hasFocus) { return; } hasFocus = true; animatorMonitor.SetTrigger(focusAnimationTrigger, null, false); UITools.EnableInteractivity(gameObject); onFocus.Invoke(); }
protected virtual void FocusNow() { panelState = PanelState.Open; animatorMonitor.SetTrigger(focusAnimationTrigger, null, false); UITools.EnableInteractivity(gameObject); if (hasFocus) { return; } if (string.IsNullOrEmpty(focusAnimationTrigger)) { OnFocused(); } else { animatorMonitor.SetTrigger(focusAnimationTrigger, OnFocused, true); } onFocus.Invoke(); }