Exemplo n.º 1
0
 public void Move()
 {
     if (to_from == -1)
     {
         movingScript.setDestination(from_pos);
         to_from = 1;
     }
     else
     {
         movingScript.setDestination(to_pos);
         to_from = -1;
     }
 }
Exemplo n.º 2
0
 public void moveToPosition(Vector3 destination)
 {
     movingScript.setDestination(destination);
 }
Exemplo n.º 3
0
 public void setMovingScriptDest(Vector3 vec)
 {
     movingScript.setDestination(vec);
 }