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