예제 #1
0
 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();
 }
예제 #2
0
 public UnitSpawner(int unitsCount, Vector3 spawnPoint, EnemyPool enemyPool)
 {
     _unitsCount = unitsCount;
     _spawnPoint = spawnPoint;
     _enemyPool  = enemyPool;
 }