internal void InvokePlayerHealEvent(Player player, ref float amount, ref bool allow) { var ev = new PlayerHealEventArgs() { Player = player, Amount = amount, Allow = allow }; PlayerHealEvent?.Invoke(ev); amount = ev.Amount; allow = ev.Allow; }
internal static void InvokePlayerHealEvent(Player player, ref float amount, out bool allow) { allow = true; if (PlayerHealEvent == null) { return; } var ev = new PlayerHealEvent { Player = player, Amount = amount, Allow = allow }; PlayerHealEvent.Invoke(ev); allow = ev.Allow; amount = ev.Amount; }