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