public static void InvokePocketDimEscaped(GameObject player, ref bool allow) { if (PocketDimEscapedEvent == null) { return; } PocketDimEscapedEvent ev = new PocketDimEscapedEvent() { Player = player.GetPlayer(), Allow = allow }; PocketDimEscapedEvent.InvokeSafely(ev); allow = ev.Allow; }
public static void InvokePocketDimEscaped(GameObject Gplayer, ref bool allow) { PocketDimEscaped pocketDimEscaped = PocketDimEscapedEvent; if (pocketDimEscaped == null) { return; } ReferenceHub player = Player.GetPlayer(Gplayer); PocketDimEscapedEvent ev = new PocketDimEscapedEvent() { Player = player, Allow = allow }; PocketDimEscapedEvent?.Invoke(ev); allow = ev.Allow; }