Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }