예제 #1
0
    public void Update()
    {
        hpixels = Screen.width;
        vpixels = Screen.height;
        xmm     = hpixels / xdpi / 0.0393701f;
        ymm     = vpixels / ydpi / 0.0393701f;
        mmdist  = xmm / 2;

        correction_factor = 0.002f * ((mmdist - 55.0f) / (76.0f - 55.0f));

        if (autoCorrectOffset)
        {
            if (OffsetCenter.instance != null)
            {
                OffsetCenter.instance.setCorrectionFactor(correction_factor);
            }
        }

        if (start_once > 0)
        {
            start_once--;
        }

        time_since_last_fullscreen += Time.deltaTime;

        if (time_since_last_fullscreen > 8)
        {
            DiveJava.setFullscreen();
            time_since_last_fullscreen = 0;
        }


        return;
    }
예제 #2
0
    public void Update()
    {
        if (start_once > 0)
        {
            start_once--;
        }

        time_since_last_fullscreen += Time.deltaTime;

        if (time_since_last_fullscreen > 8)
        {
            DiveJava.setFullscreen();
            time_since_last_fullscreen = 0;
        }
    }