public Vector3 Move() { Vector3 target; if (is_right) { move_script.setDestination(left_pos); is_right = false; target = left_pos; } else { move_script.setDestination(right_pos); is_right = true; target = right_pos; } return(target); }
public void moveToPosition(Vector3 destination) { move_script.setDestination(destination); }