void Awake() { if (UIAspectManager.instance == null) { UIAspectManager.init(); } thisPosition = transform.localPosition; UpdateUIPosition(); }
void Awake() { if (UIAspectManager.instance == null) { UIAspectManager.init(); } thisCameraOrthoSize = GetComponent <Camera>().orthographicSize; UpdateCameraOrthoSize(); }
void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } CalculateAspect(); }
void Awake() { if(instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } CalculateAspect (); }