Esempio n. 1
0
        void OnAllEnemiesKilled(WaveEnemyGroup enemyGroup)
        {
            Log.Info("All enemies in current group killed");
            enemyGroup.AllEnemiesKilled -= OnAllEnemiesKilled;

            if (enemyGroups.TrueForAll(x => x.AllEnemiesDead))
            {
                WaveCompleted = true;
                WaveComplete?.Invoke();
            }
        }
Esempio n. 2
0
 public void AddGroup(WaveEnemyGroup enemyGroup)
 {
     enemyGroups.Add(enemyGroup);
 }
Esempio n. 3
0
 void OnAllEnemiesSpawned(WaveEnemyGroup enemyGroup)
 {
     Log.Info("All enemies in current group spawned");
     enemyGroup.AllSpawned -= OnAllEnemiesSpawned;
     MoveToNextGroup();
 }