public override void OnDragStart(CursorEvent e) { if (draggable) { Vector3 cursorPosition = e.cursorPosition; gameObject.transform.position = cursorPosition; } }
public override void OnTapExit(CursorEvent e) { }
public override void OnTapEnter(CursorEvent e) { }
public override void OnGazeExit(CursorEvent e) { }
// do nothing on gaze or tap (can be overridden, of course) public override void OnGazeEnter(CursorEvent e) { }
public override void OnDragEnd(CursorEvent e) { // do nothing (basically just stop moving) }
public abstract void OnDragEnd(CursorEvent e);
public abstract void OnDragStart(CursorEvent e);
public abstract void OnTapExit(CursorEvent e);
public abstract void OnTapEnter(CursorEvent e);
public abstract void OnGazeExit(CursorEvent e);
/* Required interface methods */ public abstract void OnGazeEnter(CursorEvent e);