/*--------------------------------------------------------------------------------------------*/
        public void Update()
        {
            if (Input.GetKey(KeyCode.Escape))
            {
                Application.Quit();
                return;
            }

            InputForTests.UpdateOculus();

            vOrbitMotion.Update();
            vSpinMotion.Update();
            vBobMotion.Update();
            vGrowMotion.Update();

            for (int i = 0; i < Count; ++i)
            {
                UpdateCube(i);
            }

            vSpotlight.intensity = vLightSpotAnim.GetValue();
            vSpotlight.enabled   = (vSpotlight.intensity > 0);

            vEnviro.transform.localPosition = vCameraAnim.GetValue();
            vEnviro.transform.localRotation = vCameraRotAnim.GetValue();
        }
Exemplo n.º 2
0
        /*--------------------------------------------------------------------------------------------*/
        public void Update()
        {
            if (Input.GetKey(KeyCode.Escape))
            {
                Application.Quit();
                return;
            }

            // BUG: This method causes contant recentering disallowing the user to look sideways
//			UpdateOculus();

//			vOrbitMotion.Update();
//			vSpinMotion.Update();
//			vBobMotion.Update();
//			vGrowMotion.Update();

//			for ( int i = 0 ; i < Count ; ++i ) {
//				UpdateCube(i);
//			}

            vSpotlight.intensity = vLightSpotAnim.GetValue();
            vSpotlight.enabled   = (vSpotlight.intensity > 0);

            vEnviro.transform.localPosition = vCameraAnim.GetValue();
            vEnviro.transform.localRotation = vCameraRotAnim.GetValue();
        }