This commit is contained in:
Andrei Gavra 2019-08-06 19:48:10 +03:00
parent 7ff62dd5ae
commit 6e4eafd369

View file

@ -206,7 +206,6 @@ namespace src.Level
private void SetupLevelEnemies() private void SetupLevelEnemies()
{ {
var numberOfEnemiesToPlace = _enemyCount.RandomIntRange(); var numberOfEnemiesToPlace = _enemyCount.RandomIntRange();
_freeGridPositions.ShuffleList(); _freeGridPositions.ShuffleList();
_freeGridPositions.RemoveAll(pos => pos.x <= XMaxEnemyPosition && pos.y >= YMinEnemyPosition); _freeGridPositions.RemoveAll(pos => pos.x <= XMaxEnemyPosition && pos.y >= YMinEnemyPosition);
foreach (var nextPosition in _freeGridPositions) foreach (var nextPosition in _freeGridPositions)