diff --git a/Assets/Scripts/src/Level/LevelManager.cs b/Assets/Scripts/src/Level/LevelManager.cs index 5b190d6..eb2742f 100644 --- a/Assets/Scripts/src/Level/LevelManager.cs +++ b/Assets/Scripts/src/Level/LevelManager.cs @@ -15,27 +15,8 @@ namespace src.Level private const int XMaxEnemyPosition = 5; private const int YMinEnemyPosition = -5; - public Count DestructibleWallCount - { - get => _destructibleWallCount; - set => _destructibleWallCount = value; - } - - public Count UpgradesCount - { - get => _upgradesCount; - set => _upgradesCount = value; - } - - public Count EnemyCount - { - get => _enemyCount; - set => _enemyCount = value; - } - /* Used to group spawned objects */ private Transform _boardHolder; - /* Holds the starting position of the player */ private Transform _startPosition; @@ -57,6 +38,8 @@ namespace src.Level /* Holds the available positions */ private readonly List _freeGridPositionsBoard = new List(); private List _freeGridPositions; + + /* Holds initialized game objects */ private List _destructibleWalls; private List _enemies; @@ -163,7 +146,7 @@ namespace src.Level private void SetupLevelDestructibleWalls() { var numberOfWallsRemaining = _destructibleWallCount.RandomIntRange(); - List usedPositions = new List(); + var usedPositions = new List(); _freeGridPositions.ShuffleList(); foreach (var nextPosition in _freeGridPositions) {