public void TriggerPlayerWarpingEvent(PipeTop entrance, PipeTop exit, Mario player) { PlayerWarpingEventArgs args = new PlayerWarpingEventArgs(entrance, exit, player); OnRaisePlayerWarpingEvent(args); }
protected virtual void OnRaisePlayerWarpingEvent(PlayerWarpingEventArgs e) { EventHandler <PlayerWarpingEventArgs> handler = RaisePlayerWarpingEvent; handler?.Invoke(e.Sender, e); }