Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
 public void moveToPosition(Vector3 destination)
 {
     moveScript.setDestination(destination);
 }