コード例 #1
0
 protected virtual void Start()
 {
     _started = true;
     CheckCanvasAndGraphicsRaycaster();
     if (Application.isPlaying && enabled && gameObject.activeSelf && gameObject.activeInHierarchy)
     {
         CheckFocus(TweenContainerUtils.GetContainerVisibilityInHierarchy(this.gameObject), false);
     }
 }
コード例 #2
0
 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();
     }
 }