private void NextWave() { _waveState = Enumerators.WaveState.WAIT_NEXT_WAVE; _currentWaveIndex++; _currentWaveSettings = _gameManager.LevelController.CurrentLevel.LevelSettings.waves[_currentWaveIndex]; _countdown = _currentWaveSettings.delayBeforeStartWave; OnWaveChangedEvent?.Invoke(_currentWaveIndex + 1, _gameManager.LevelController.CurrentLevel.LevelSettings.waves.Length); }
public void InitWaves() { _currentWaveIndex = 0; _currentWaveSettings = _gameManager.LevelController.CurrentLevel.LevelSettings.waves[_currentWaveIndex]; _countdown = _currentWaveSettings.delayBeforeStartWave; _waveState = Enumerators.WaveState.WAIT_NEXT_WAVE; IsLastWaveFinished = false; OnWaveChangedEvent?.Invoke(_currentWaveIndex + 1, _gameManager.LevelController.CurrentLevel.LevelSettings.waves.Length); }