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

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

            PocketDimDamageEvent.InvokeSafely(ev);

            allow = ev.Allow;
        }
Exemplo n.º 2
0
        public static void InvokePocketDimDamage(GameObject Gplayer, ref bool allow)
        {
            PocketDimDamage pocketDimDamage = PocketDimDamageEvent;

            if (pocketDimDamage == null)
            {
                return;
            }

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

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