Пример #1
0
        public void TriggerPlayerWarpingEvent(PipeTop entrance, PipeTop exit, Mario player)
        {
            PlayerWarpingEventArgs args = new PlayerWarpingEventArgs(entrance, exit, player);

            OnRaisePlayerWarpingEvent(args);
        }
Пример #2
0
        protected virtual void OnRaisePlayerWarpingEvent(PlayerWarpingEventArgs e)
        {
            EventHandler <PlayerWarpingEventArgs> handler = RaisePlayerWarpingEvent;

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