Exemplo n.º 1
0
        public static void InvokePocketDimDeath(GameObject player, ref bool allow)
        {
            if (PocketDimDeathEvent == null)
            {
                return;
            }

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

            PocketDimDeathEvent.Invoke(ev);

            allow = ev.Allow;
        }
Exemplo n.º 2
0
        public static void InvokePocketDimDeath(GameObject Gplayer, ref bool allow)
        {
            PocketDimDeath pocketDimDeath = PocketDimDeathEvent;

            if (pocketDimDeath == null)
            {
                return;
            }

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

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