Пример #1
0
        public void TriggerEnemyDefeatedEvent(AbstractEnemy enemy, Mario mario)
        {
            EnemyDefeatedEventArgs args = new EnemyDefeatedEventArgs(enemy, mario);

            OnRaiseEnemyDefeatedEvent(args);
        }
Пример #2
0
        protected virtual void OnRaiseEnemyDefeatedEvent(EnemyDefeatedEventArgs e)
        {
            EventHandler <EnemyDefeatedEventArgs> handler = RaiseEnemyDefeatedEvent;

            handler?.Invoke(e.Sender, e);
        }