示例#1
0
        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
        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;
        }