Exemple #1
0
    //------------------------------------------------------------------
    public void StopMoveTo()
    {
        if (_Order != OrderToDo.MoveTo) return ;

        Position = _moveToPosMap;
        _Order = OrderToDo.None;
        _speed = 0;
    }
Exemple #2
0
 //------------------------------------------------------------------
 public void MoveTo(Vector3 posMap)
 {
     _Order = OrderToDo.MoveTo;
     _moveToPosMap = posMap;
 }