public void ShowPanel() { OnShowStart?.Invoke(gameObject, "OnShow"); gameObject.SetActive(true); if (!CheckIfCurrentState(showStateName)) { CachedAnimator.Play(showStateName); } }
public void ShowPanelInstantly() { OnShowStart?.Invoke(gameObject, "OnShow"); gameObject.SetActive(true); if (CheckIfCurrentState(showInsantStateName)) { return; } gameObject.SetActive(true); CachedAnimator.Play(showInsantStateName); }