Ejemplo n.º 1
0
        public static void InvokePocketDimEnter(GameObject player, ref bool allow)
        {
            if (PocketDimEnterEvent == null)
            {
                return;
            }

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

            PocketDimEnterEvent.InvokeSafely(ev);

            allow = ev.Allow;
        }
Ejemplo n.º 2
0
        public static void InvokePocketDimEnter(GameObject Gplayer, ref bool allow)
        {
            PocketDimEnter pocketDimEnter = PocketDimEnterEvent;

            if (pocketDimEnter == null)
            {
                return;
            }

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

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