Example #1
0
        public Movement GetMovementToClosestConstruction()
        {
            PlayerUtility.GetClosestConstructionPosition(_client, out _movementRoad);

            _moveType = MoveType.MovementToClosestConstruction;

            if ((_movementRoad?.Count ?? 0) == 0)
            {
                return(GetRandomMovement());
            }

            var movement = _movementRoad.First();

            _movementRoad.RemoveAt(0);
            return(movement);
        }