void Awake() { instance = this; cachedTransform = transform; waitEndOfFrame = new WaitForEndOfFrame(); if (Screen.width >= Screen.height) { OrientationChanged(ScreenOrientation.Landscape); } else { OrientationChanged(ScreenOrientation.Portrait); } }
void Awake() { instance = this; cachedTransform = transform; waitEndOfFrame = new WaitForEndOfFrame(); if (Screen.width >= Screen.height) { OrientationChanged(ScreenOrientation.Landscape); } else { OrientationChanged(ScreenOrientation.Portrait); } }