private void Awake() { _instance = this; _enemyPool = new Pool <EnemyA>(amount, EnemyFactory, EnemyA.InitializeEnemy, EnemyA.DisposeEnemy, true); timer = 1.5f; }
public void SetEnemyPool(EnemyAGenerator pEnemyPool) { _enemyPool = pEnemyPool; }