private void Update() { // Debug controlling of the any Unit on the map if enabled mousControl. if (mouseControl && Input.GetMouseButtonDown(0)) { MoveTo(AntMath.GetMouseWorldPosition()); } if (_isMove) { UpdateMovement(); } else { Velocity = Vector2.zero; StopMovementEffects(); } }