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