예제 #1
0
        public static void InvokeScp079TriggerTesla(GameObject player, ref bool allow)
        {
            if (Scp079TriggerTeslaEvent == null)
            {
                return;
            }

            Scp079TriggerTeslaEvent ev = new Scp079TriggerTeslaEvent
            {
                Player = player.GetPlayer(),
                Allow  = allow
            };

            Scp079TriggerTeslaEvent.InvokeSafely(ev);

            allow = ev.Allow;
        }
예제 #2
0
        public static void InvokeScp079TriggerTesla(GameObject player, ref bool allow)
        {
            Scp079TriggerTesla scp079TriggerTesla = Scp079TriggerTeslaEvent;

            if (scp079TriggerTesla == null)
            {
                return;
            }

            Scp079TriggerTeslaEvent ev = new Scp079TriggerTeslaEvent
            {
                Player = Player.GetPlayer(player),
                Allow  = allow
            };

            scp079TriggerTesla.Invoke(ref ev);
            allow = ev.Allow;
        }