Example #1
0
 public void Execute(float deltaTime)
 {
     _ship.Move(_horizontal.GetAxis(), _vertical.GetAxis(), deltaTime);
 }
Example #2
0
 private Vector3 GetCurrentDirection(Vector3 direction)
 {
     direction.Set(_horizontal.GetAxis(), 0, _vertical.GetAxis());
     direction = direction.normalized;
     return(direction);
 }