protected virtual void Start() { _started = true; CheckCanvasAndGraphicsRaycaster(); if (Application.isPlaying && enabled && gameObject.activeSelf && gameObject.activeInHierarchy) { CheckFocus(TweenContainerUtils.GetContainerVisibilityInHierarchy(this.gameObject), false); } }
protected virtual void OnEnable() { if (Application.isPlaying && enabled && gameObject.activeSelf && gameObject.activeInHierarchy) { RegisterEvents(); if (_started) { CheckFocus(TweenContainerUtils.GetContainerVisibilityInHierarchy(this.gameObject)); } } else if (!Application.isPlaying) { CheckCanvasAndGraphicsRaycaster(); } }