private void Events_OnVehicleExploding(InteractableVehicle vehicle, out bool cancel) { UnturnedVehicleExplodingEvent @event = new UnturnedVehicleExplodingEvent(new UnturnedVehicle(vehicle)); Emit(@event); cancel = @event.IsCancelled; }
private void Events_OnVehicleExploding(InteractableVehicle vehicle, ref bool cancel) { var @event = new UnturnedVehicleExplodingEvent(new UnturnedVehicle(vehicle)) { IsCancelled = cancel }; Emit(@event); cancel = @event.IsCancelled; }