void Awake() { MainCamera = MTools.FindMainCamera(); if (TextUI == null) { TextUI = GetComponent <Text>(); } ScreenCenter = transform.position; DefaultScreenCenter = transform.position; }
private void OnEnable() { MainCamera = MTools.FindMainCamera(); Align(); }
void Awake() { MainCamera = MTools.FindMainCamera(); ScreenCenter = transform.position; DefaultScreenCenter = transform.position; }