public void Move() { if (!hasPassenger()) { return; } if (to_or_from == BoatState.To) { move.setDest(fromPosition); to_or_from = BoatState.From; } else { move.setDest(toPosition); to_or_from = BoatState.To; } }
public void moveToPosition(Vector3 dest) { move.setDest(dest); }