Example #1
0
        public void TriggerMarioPowerupStateChangedEvent(Mario mario)
        {
            MarioPowerupStateEventArgs args = new MarioPowerupStateEventArgs(mario);

            OnRaiseMarioPowerupStateEvent(args);
        }
        protected virtual void OnRaiseMarioPowerupStateEvent(MarioPowerupStateEventArgs e)
        {
            EventHandler <MarioPowerupStateEventArgs> handler = RaiseMarioPowerupStateEvent;

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