Пример #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.Invoke(ev);

            allow = ev.Allow;
        }
Пример #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;
        }