//------------------------------------------------------------------ public void StopMoveTo() { if (_Order != OrderToDo.MoveTo) return ; Position = _moveToPosMap; _Order = OrderToDo.None; _speed = 0; }
//------------------------------------------------------------------ public void MoveTo(Vector3 posMap) { _Order = OrderToDo.MoveTo; _moveToPosMap = posMap; }