private void BossBattle_OnDeath(object sender, System.EventArgs e)
    {
        // Boss dead! Boss battle over!
        Debug.Log("Boss Battle Over!");
        FunctionPeriodic.StopAllFunc("enemySpawn");
        FunctionPeriodic.StopAllFunc("spawnHealthPickup");
        FunctionPeriodic.StopAllFunc("spawnShieldPickup");
        DestroyAllEnemies();
        if (!m_IsFinalBoss)
        {
            MusicManager.Instance.PlayMusic(MusicManager.MusicTheme.Game);
        }


        OnBossDeath?.Invoke(this, EventArgs.Empty);
    }
Exemple #2
0
 public override void Die(bool scorePoints = true)
 {
     base.Die(true);
     OnBossDeath?.Invoke();
 }
 public void BossDeath(string bossTag)
 {
     OnBossDeath?.Invoke(bossTag);
 }