Example #1
0
 public override void OnDragStart(CursorEvent e)
 {
     if (draggable)
     {
         Vector3 cursorPosition = e.cursorPosition;
         gameObject.transform.position = cursorPosition;
     }
 }
Example #2
0
 public override void OnTapExit(CursorEvent e)
 {
 }
Example #3
0
 public override void OnTapEnter(CursorEvent e)
 {
 }
Example #4
0
 public override void OnGazeExit(CursorEvent e)
 {
 }
Example #5
0
 // do nothing on gaze or tap (can be overridden, of course)
 public override void OnGazeEnter(CursorEvent e)
 {
 }
Example #6
0
 public override void OnDragEnd(CursorEvent e)
 {
     // do nothing (basically just stop moving)
 }
Example #7
0
 public abstract void OnDragEnd(CursorEvent e);
Example #8
0
 public abstract void OnDragStart(CursorEvent e);
Example #9
0
 public abstract void OnTapExit(CursorEvent e);
Example #10
0
 public abstract void OnTapEnter(CursorEvent e);
Example #11
0
 public abstract void OnGazeExit(CursorEvent e);
Example #12
0
 /* Required interface methods */
 public abstract void OnGazeEnter(CursorEvent e);