public static void InvokeScp106Teleport(GameObject player, Vector3 portalPosition, ref bool allow) { if (Scp106TeleportEvent == null) { return; } Scp106TeleportEvent ev = new Scp106TeleportEvent() { Player = player.GetPlayer(), PortalPosition = portalPosition, Allow = allow }; Scp106TeleportEvent.InvokeSafely(ev); allow = ev.Allow; }
public static void InvokeScp106Teleport(GameObject Gplayer, Vector3 PortalPos, ref bool allow) { Scp106Teleport scp106Teleport = Scp106TeleportEvent; if (scp106Teleport == null) { return; } Scp106TeleportEvent ev = new Scp106TeleportEvent() { Player = Player.GetPlayer(Gplayer), PortalPosition = PortalPos, Allow = allow }; scp106Teleport.Invoke(ev); allow = ev.Allow; }