/*--------------------------------------------------------------------------------------------*/ 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(); }
/*--------------------------------------------------------------------------------------------*/ public void Update() { if (Input.GetKey(KeyCode.Escape)) { Application.Quit(); return; } InputForTests.UpdateOculus(); }