Ejemplo n.º 1
0
 private void Awake()
 {
     if (inputActions == null)
     {
         inputActions = new XRIDefaultInputActions();
     }
 }
Ejemplo n.º 2
0
 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;
    }
Ejemplo n.º 4
0
 private void Awake()
 {
     this.interactor   = GetComponent <XRDirectInteractor>();
     this.inputActions = new XRIDefaultInputActions();
     this.inputActions.Enable();
 }