Beispiel #1
0
    IEnumerator checkForResize()
    {
        lastWidth  = Screen.width;
        lastHeight = Screen.height;

        while (bCheckForResize)
        {
            if (lastWidth != Screen.width || lastHeight != Screen.height)
            {
                lastWidth  = Screen.width;
                lastHeight = Screen.height;
                mLensmodel.setImageSize(lastWidth, lastHeight);
                mArcball.setScreenSize(lastWidth, lastHeight);
            }
            yield return(new WaitForSeconds(0.3f));
        }
    }