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