private void Awake() { if (inputActions == null) { inputActions = new XRIDefaultInputActions(); } }
private void OnEnable() { if (controls == null) { controls = new XRIDefaultInputActions(); controls.XRILeftHand.SetCallbacks(this); } controls.XRILeftHand.Enable(); }
private void Awake() { _xrInputActions = new XRIDefaultInputActions(); // Right Hand _rightHandTrigger = _xrInputActions.XRIRightHandInteraction.Activate; _rightHandGrip = _xrInputActions.XRIRightHandInteraction.Select; _rightHandSecondary = _xrInputActions.XRIRightHandInteraction.Secondary; // Left Hand _leftHandTrigger = _xrInputActions.XRILeftHandInteraction.Activate; _leftHandGrip = _xrInputActions.XRILeftHandInteraction.Select; }
private void Awake() { this.interactor = GetComponent <XRDirectInteractor>(); this.inputActions = new XRIDefaultInputActions(); this.inputActions.Enable(); }