public bool Add(Item item) { bool a = inventory.AddItem(item); UpdateUi(); return(a); }
internal void AddInventoryItem(int itemId, int amount) { var item = inventory.AddItem(itemId, amount); uiManager.ChatPanel.OnItemAdd(item, amount); }