Try
This commit is contained in:
parent
7ff62dd5ae
commit
6e4eafd369
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue