コード例 #1
0
        public static void InvokeScp914Activation(GameObject player, ref bool allow, ref double time)
        {
            if (Scp914ActivationEvent == null)
            {
                return;
            }

            Scp914ActivationEvent ev = new Scp914ActivationEvent
            {
                Player = player.GetPlayer(),
                Allow  = allow,
                Time   = time
            };

            Scp914ActivationEvent.InvokeSafely(ev);

            allow = ev.Allow;
            time  = ev.Time;
        }
コード例 #2
0
ファイル: PlayerEvents.cs プロジェクト: Killers0992/EXILED
        public static void InvokeScp914Activation(GameObject obj, ref bool allow, ref double time)
        {
            Scp914Activation scp914Activation = Scp914ActivationEvent;

            if (scp914Activation == null)
            {
                return;
            }
            ReferenceHub          player = Player.GetPlayer(obj);
            Scp914ActivationEvent ev     = new Scp914ActivationEvent
            {
                Player = player,
                Allow  = allow,
                Time   = time
            };

            scp914Activation.Invoke(ref ev);
            allow = ev.Allow;
            time  = ev.Time;
        }