public void boatMove() { if (TFflag == 1) { Cmove.SetDestination(toPos); TFflag = -1; } else { Cmove.SetDestination(fromPos); TFflag = 1; } }
public void moveToPosition(Vector3 _dest) { Cmove.SetDestination(_dest); }
public void boatMove() { if (TFflag == 1) { Cmove.SetDestination(toPos); TFflag = -1; } else { Cmove.SetDestination(fromPos); TFflag = 1; } }
public void moveToPosition(Vector3 _dest) { Cmove.SetDestination(_dest); }