Пример #1
0
        private void EndWave()
        {
            _waveIndex++;
            OnChangedWave?.Invoke(_waveIndex);

            _enemiesParametersController.ImproveParameters();
        }
Пример #2
0
        public void Restart()
        {
            _waveIndex          = 1;
            _killedEnemiesCount = 0;
            OnChangedWave?.Invoke(_waveIndex);

            DestroyAllEnemy();
            _enemiesParametersController.SetParameters(enemyTypes);
            _isGameContinues = true;

            SpawnEnemies();
        }