protected virtual void Awake() { _visuals = GetComponent <IUIWindowVisuals>(); if (resetPositionOnStart) { rectTransform.anchoredPosition = Vector2.zero; } }
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 }