public static void InvokeScp096Enrage(Scp096PlayerScript script, ref bool allow) { if (Scp096EnrageEvent == null) { return; } Scp096EnrageEvent ev = new Scp096EnrageEvent() { Player = script.gameObject.GetPlayer(), Script = script, Allow = allow }; Scp096EnrageEvent.InvokeSafely(ev); allow = ev.Allow; }
public static void InvokeScp096Enrage(Scp096PlayerScript script, ref bool allow) { Scp096Enrage scp096Enrage = Scp096EnrageEvent; if (scp096Enrage == null) { return; } Scp096EnrageEvent ev = new Scp096EnrageEvent() { Player = Player.GetPlayer(script.gameObject), Script = script, Allow = allow }; scp096Enrage?.Invoke(ref ev); allow = ev.Allow; }