using HurricaneVR.Framework.ControllerInput; using HurricaneVR.Framework.Shared; using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerInputsCompoment : HVRPlayerInputs { protected bool EnableMouseLook; protected override void UpdateInput() { base.UpdateInput(); EnableMouseLook = !Input.GetKey(KeyCode.LeftAlt); } protected override Vector2 GetMouse(out bool mouseDown) { mouseDown = EnableMouseLook; return new Vector2(Input.GetAxis("Mouse X"), Input.GetAxis("Mouse Y")); } protected override bool GetIsJumpActivated() { if (Input.GetKey(KeyCode.Space)) { return true; } return false; } }