Beispiel #1
0
 public void Move()
 {
     if (to_or_from == -1)
     {
         moveScript.setDestination(fromPosition);
         to_or_from = 1;
     }
     else
     {
         moveScript.setDestination(toPosition);
         to_or_from = -1;
     }
 }
Beispiel #2
0
 public void moveToPosition(Vector3 destination)
 {
     moveScript.setDestination(destination);
 }