public static void InvokePocketDimDeath(GameObject player, ref bool allow)
        {
            if (PocketDimDeathEvent == null)
            {
                return;
            }

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

            PocketDimDeathEvent.InvokeSafely(ev);

            allow = ev.Allow;
        }
Example #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;
        }