Beispiel #1
0
 public Joystick(JoystickData data, JoystickView view)
 {
     Data  = data;
     _view = view;
 }
Beispiel #2
0
 public void OnPointerUp()
 {
     _view.OnPointerUp();
     Data = new JoystickData(Vector2.zero);
 }
Beispiel #3
0
 public void OnDrag(Vector2 position)
 {
     Data = new JoystickData(_view.OnDrag(position));
 }
Beispiel #4
0
 public void OnPointerDown(Vector2 position)
 {
     _view.OnPointerDown(position);
     Data = new JoystickData(Vector2.zero);
 }
 public JoystickController(JoystickData data, JoystickView view)
 {
     Data  = data;
     _view = view;
 }