コード例 #1
0
ファイル: PlayerEvents.cs プロジェクト: HolziHolz/EXILED
        public static void InvokePocketDimEscaped(GameObject player, ref bool allow)
        {
            if (PocketDimEscapedEvent == null)
            {
                return;
            }

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

            PocketDimEscapedEvent.Invoke(ev);

            allow = ev.Allow;
        }
コード例 #2
0
ファイル: PlayerEvents.cs プロジェクト: Killers0992/EXILED
        public static void InvokePocketDimEscaped(GameObject Gplayer, ref bool allow)
        {
            PocketDimEscaped pocketDimEscaped = PocketDimEscapedEvent;

            if (pocketDimEscaped == null)
            {
                return;
            }

            ReferenceHub          player = Player.GetPlayer(Gplayer);
            PocketDimEscapedEvent ev     = new PocketDimEscapedEvent()
            {
                Player = player,
                Allow  = allow
            };

            PocketDimEscapedEvent?.Invoke(ev);
            allow = ev.Allow;
        }