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