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; }
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; }