Beispiel #1
0
        private void Minion_OnDeath(IMonster minion, ulong reward)
        {
            OnMonsterDeath?.Invoke(minion, reward);
            Minions.Remove((Minion)minion);

            if (Minions.Count == 0)
            {
                _currentMonster = Boss;
            }
            else
            {
                _currentMonster = Minions.First();
            }

            OnNewMonster?.Invoke(_currentMonster);
        }