private void EndWave() { _waveIndex++; OnChangedWave?.Invoke(_waveIndex); _enemiesParametersController.ImproveParameters(); }
public void Restart() { _waveIndex = 1; _killedEnemiesCount = 0; OnChangedWave?.Invoke(_waveIndex); DestroyAllEnemy(); _enemiesParametersController.SetParameters(enemyTypes); _isGameContinues = true; SpawnEnemies(); }