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