Exemplo n.º 1
0
        public static void InvokeScp096Enrage(Scp096PlayerScript script, ref bool allow)
        {
            if (Scp096EnrageEvent == null)
            {
                return;
            }

            Scp096EnrageEvent ev = new Scp096EnrageEvent()
            {
                Player = script.gameObject.GetPlayer(),
                Script = script,
                Allow  = allow
            };

            Scp096EnrageEvent.InvokeSafely(ev);

            allow = ev.Allow;
        }
Exemplo n.º 2
0
        public static void InvokeScp096Enrage(Scp096PlayerScript script, ref bool allow)
        {
            Scp096Enrage scp096Enrage = Scp096EnrageEvent;

            if (scp096Enrage == null)
            {
                return;
            }

            Scp096EnrageEvent ev = new Scp096EnrageEvent()
            {
                Player = Player.GetPlayer(script.gameObject),
                Script = script,
                Allow  = allow
            };

            scp096Enrage?.Invoke(ref ev);
            allow = ev.Allow;
        }