public override void Die() { base.Die(); if (m_JoystickNavigation != null) { m_JoystickNavigation.EnableTranslation(true); m_JoystickNavigation.EnableRotation(true); } }
public override void Start() { base.Start(); m_ShuttleTransform = MVRCameraUtils.GetInstance.p_ShuttleContainer; // We disable the move by joystick but keep the rotation. m_JoystickNavigation = FindObjectOfType <VRInteractionNavigationWandJoystick>(); if (m_JoystickNavigation != null) { m_JoystickNavigation.EnableTranslation(false); m_JoystickNavigation.EnableRotation(false); } }
public override void Start() { base.Start(); m_ShuttleTransform = MVRCameraUtils.GetInstance.p_ShuttleContainer; // We disable the move by joystick but keep the rotation. m_JoystickNavigation = FindObjectOfType<VRInteractionNavigationWandJoystick>(); if (m_JoystickNavigation != null) { m_JoystickNavigation.EnableTranslation(false); m_JoystickNavigation.EnableRotation(false); } }