void Start() { _controllersParameter = ControllersParametersVariable.Instance; _gazeParameter = GazeParametersVariable.Instance; _interactionContainer = InteractionVariableContainer.Instance; // Set to true to avoid error on the first frame. _interactionContainer.RightHit.isNull = true; _interactionContainer.LeftHit.isNull = true; _interactionContainer.GazeHit.isNull = true; // if we don't use the controllers and the gaze if (!_controllersParameter.UseControllers && !_gazeParameter.UseGaze) { this.enabled = false; } }
void Start() { _controllersParameter = ControllersParametersVariable.Instance; _gazeParameter = GazeParametersVariable.Instance; _inputContainer = InputVariableContainer.Instance; _interactionContainer = InteractionVariableContainer.Instance; _leftClick = _inputContainer.LeftClickBoolean.Get("TriggerIsDown"); _rightClick = _inputContainer.RightClickBoolean.Get("TriggerIsDown"); // Set to true to avoid error on the first frame. _interactionContainer.RightHit.isNull = true; _interactionContainer.LeftHit.isNull = true; _interactionContainer.GazeHit.isNull = true; // As we cannot click without controllers, we disable this script if we don't use them if (!_controllersParameter.UseControllers) { this.enabled = false; } }