Example #1
0
        public void TriggerEnemyDefeatedEvent(AbstractEnemy enemy, Mario mario)
        {
            EnemyDefeatedEventArgs args = new EnemyDefeatedEventArgs(enemy, mario);

            OnRaiseEnemyDefeatedEvent(args);
        }
        protected virtual void OnRaiseEnemyDefeatedEvent(EnemyDefeatedEventArgs e)
        {
            EventHandler <EnemyDefeatedEventArgs> handler = RaiseEnemyDefeatedEvent;

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