Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 public void moveToPosition(Vector3 dest)
 {
     move.setDest(dest);
 }