Пример #1
0
 private void LaunchBossDie()
 {
     if (LevelsChanger.Instance.IsLastLevel)
     {
         FinalBossDied.Invoke();
     }
     else
     {
         BossDied.Invoke();
     }
 }
Пример #2
0
    private void LaunchBossDie(int amn)
    {
        Boss.BossDied -= Boss_BossDied;

        if (LevelsChanger.Instance.IsLastLevel)
        {
            // get levels counter from last boss
            FinalBossDied.Invoke(amn);
        }
        else
        {
            BossDied.Invoke();
        }
    }