示例#1
0
        private void Events_OnVehicleExploding(InteractableVehicle vehicle, out bool cancel)
        {
            UnturnedVehicleExplodingEvent @event = new UnturnedVehicleExplodingEvent(new UnturnedVehicle(vehicle));

            Emit(@event);

            cancel = @event.IsCancelled;
        }
示例#2
0
        private void Events_OnVehicleExploding(InteractableVehicle vehicle, ref bool cancel)
        {
            var @event = new UnturnedVehicleExplodingEvent(new UnturnedVehicle(vehicle))
            {
                IsCancelled = cancel
            };

            Emit(@event);

            cancel = @event.IsCancelled;
        }