public override void ActiveEnemyComponent() { SpellLeft = TotalSpellCount; CurrentEnenmyIndex = 0; CurrentEnemy = spawnEnemy(CurrentEnenmyIndex); CurrentEnemy.OnEnemyFinished += continueBoss; CurrentEnemy.ActiveEnemyComponent(); }
private void continueToNextEnemy() { CurrentEnemy = spawnEnemy(CurrentEnenmyIndex); CurrentEnemy.OnEnemyFinished += continueBoss; if (CurrentEnemy is SpellCard) { SpellLeft--; } CurrentEnemy.ActiveEnemyComponent(); }