protected override void UpdateObject(SixenseInput.Controller controller) { if (m_animator == null) return; GameObject CameraBase = GameObject.Find("OVRCameraController"); if ( CameraBase == null) return; HydraDeckCamera DeckCamera = CameraBase.GetComponentInChildren<HydraDeckCamera>(); if (DeckCamera == null) return; if (controller.Enabled) { // Animation update UpdateAnimationInput(controller); } if (!m_enabled && DeckCamera.State == HydraDeckCamera.CameraState.Enabled) { // enable position and orientation control m_enabled = !m_enabled; } if (m_enabled) { if (controller.GetButtonDown(SixenseButtons.TRIGGER)){ LookAtCue = true; } if (controller.GetButtonUp(SixenseButtons.TRIGGER)){ LookAtCue = false; } if (controller.GetButtonDown(SixenseButtons.BUMPER)){ Application.LoadLevel(0); } UpdatePosition(controller, DeckCamera); UpdateRotation(controller); } }