void OnDisable() { // Is there a current target? if (currentTarget != null) { currentTarget.OnGazeExit(); } // Tell pointer to exit target. if (pointer != null) { // Is there a pending trigger? if (isTriggered) { pointer.OnPointerClickUp(); } if (currentGazeObject != null) { pointer.OnPointerExit(currentGazeObject); } pointer.OnInputModuleDisabled(); } currentGazeObject = null; currentTarget = null; isTriggered = false; }
public void OnPointerClickUp() { GazePointer.OnPointerClickUp(); }