Пример #1
0
        internal void InvokeTriggerTeslaEv(Player player, Tesla tesla, ref bool trigger)
        {
            trigger = true;
            var ev = new TriggerTeslaEventArgs
            {
                Player  = player,
                Tesla   = tesla,
                Trigger = trigger
            };

            TriggerTeslaEvent?.Invoke(ev);

            trigger = ev.Trigger;
        }
Пример #2
0
        internal void InvokeTriggerTeslaEv(Player player, Tesla tesla, bool hurtrange, out bool trigger)
        {
            trigger = true;
            var ev = new TriggerTeslaEventArgs
            {
                Player    = player,
                Tesla     = tesla,
                HurtRange = hurtrange,
                Trigger   = trigger
            };

            TriggerTeslaEvent.Invoke(ev);

            trigger = ev.Trigger;
        }