public static void InvokeIntercomSpeak(GameObject player, ref bool allow) { if (IntercomSpeakEvent == null) { return; } IntercomSpeakEvent ev = new IntercomSpeakEvent { Player = player.GetPlayer(), Allow = allow }; IntercomSpeakEvent.InvokeSafely(ev); allow = ev.Allow; }
public static void InvokeIntercomSpeak(GameObject player, ref bool allow) { IntercomSpeak intercomSpeak = IntercomSpeakEvent; if (intercomSpeak == null) { return; } IntercomSpeakEvent ev = new IntercomSpeakEvent { Player = Player.GetPlayer(player), Allow = allow }; intercomSpeak.Invoke(ref ev); allow = ev.Allow; }