public void Init(int unitsCount, List <Vector3> spawnPoints, EnemyPool enemyPool, MapData mapData) { _unitsCount = unitsCount; _spawnPoints = spawnPoints; _enemyPool = enemyPool; _enemyInGame = new List <EnemyFacade>(); _mapData = mapData; CreateUnitSpawners(); }
public UnitSpawner(int unitsCount, Vector3 spawnPoint, EnemyPool enemyPool) { _unitsCount = unitsCount; _spawnPoint = spawnPoint; _enemyPool = enemyPool; }