Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }