Inheritance: MonoBehaviour
コード例 #1
0
	void Awake()
	{
		instance = this;
		cachedTransform = transform;
		waitEndOfFrame = new WaitForEndOfFrame();
		
		if (Screen.width >= Screen.height) {
			OrientationChanged(ScreenOrientation.Landscape);
		}
		else {
			OrientationChanged(ScreenOrientation.Portrait);
		}
	}
コード例 #2
0
    void Awake()
    {
        instance        = this;
        cachedTransform = transform;
        waitEndOfFrame  = new WaitForEndOfFrame();

        if (Screen.width >= Screen.height)
        {
            OrientationChanged(ScreenOrientation.Landscape);
        }
        else
        {
            OrientationChanged(ScreenOrientation.Portrait);
        }
    }