private void Awake() { _pool = GetComponent <ObjectPool_Dynamic>(); _spawnPoints = GetComponentsInChildren <SpawnPoint>(); _gameManager = FindObjectOfType <GameManager>(); _spawnIncrease = _gameManager.spawnRateIncrease; _maxSpawnRate = _gameManager.maxSpawnRate; _spawnDelay = _gameManager.spawnDelay; }
public void Setup(ObjectPool_Dynamic pool) { this.pool = pool; }