Beispiel #1
0
    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);
    }
Beispiel #2
0
 public override void Die(bool scorePoints = true)
 {
     base.Die(true);
     OnBossDeath?.Invoke();
 }
Beispiel #3
0
 public void BossDeath(string bossTag)
 {
     OnBossDeath?.Invoke(bossTag);
 }