Example #1
0
 protected virtual void Awake()
 {
     _visuals = GetComponent <IUIWindowVisuals>();
     if (resetPositionOnStart)
     {
         rectTransform.anchoredPosition = Vector2.zero;
     }
 }
Example #2
0
        protected virtual void Awake()
        {
            _visuals = GetComponent <IUIWindowVisuals>();
            if (resetPositionOnStart)
            {
                rectTransform.anchoredPosition = Vector2.zero;
            }

#if UNITY_5_4_OR_NEWER
            UnityEngine.SceneManagement.SceneManager.sceneLoaded += SceneLoaded;
#endif
        }