private void Spawn() { InstantiateEnemy(); _spawnedEnemyCount++; _timeAfterLastSpawn = 0; OnEnemyCountChanged?.Invoke(_spawnedEnemyCount, _currentWave.EnemyCount); }
private void SetWave(int index) { _currentWave = _waves[index]; OnEnemyCountChanged?.Invoke(0, 1); }