コード例 #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();
            }
        }
コード例 #2
0
 public void AddGroup(WaveEnemyGroup enemyGroup)
 {
     enemyGroups.Add(enemyGroup);
 }
コード例 #3
0
 void OnAllEnemiesSpawned(WaveEnemyGroup enemyGroup)
 {
     Log.Info("All enemies in current group spawned");
     enemyGroup.AllSpawned -= OnAllEnemiesSpawned;
     MoveToNextGroup();
 }