Пример #1
0
        private bool TryEquip(InventoryComponent inv, Slots slot, IEntity user)
        {
            if (!inv.Equip(slot, this, out var reason))
            {
                if (reason != null)
                {
                    _serverNotifyManager.PopupMessage(Owner, user, reason);
                }

                return(false);
            }

            return(true);
        }
        public override void Initialize()
        {
            base.Initialize();

            _inventory = Owner.GetComponent <InventoryComponent>();
        }