private void EnemyDeath(object sender, System.EventArgs e) { EnemyDeathArgs enemyDeathArgs = (EnemyDeathArgs)e; if (enemyDeathArgs.tag == "Boss") { bSpawnBoss = false; } if (enemyDeathArgs.tag == "FinalBoss") { endGameManager.gameVictory = true; GlobalGameManager.uiManager.toggleGameOverPanel(); } amountOfEnemiesKilled++; if (amountOfEnemiesKilled >= GetAmountOfEnemiesOfLevel()) { gameInitializer.EndWave(); } if (amountOfEnemiesKilled >= amountOfKillsRequiredForBoss) { bSpawnFinalBoss = true; } }
void CheckForBossDead(object sender, System.EventArgs e) { EnemyDeathArgs args = (EnemyDeathArgs)e; if (args.tag == "Boss") { gameObject.SetActive(true); StartCoroutine(DisableQuickMessage()); } }