public void ModifyItemCount() { if (_isItemCountChanger) { GlobalInventoryController.AddItems(Item.GetName(), ItemCount); } }
private void Update() { int itemCount = GlobalInventoryController.ItemCount(itemName); string itemCountString = itemCount.ToString(); itemCountTextBox.SetText(itemCountString); descriptionTextBox.SetText(itemDescription); }
private void updateSlots() { foreach (Item item in _allItems) { DeleteSlot(item); } foreach (Item item in _allItems) { if (GlobalInventoryController.ItemCount(item.GetName()) > 0) { AddSlot(item); } } }
private bool ConditionMet() { return(GlobalInventoryController.ItemCount(_itemNode.Item.GetName()) >= _itemNode.ItemCount); }
public void InteractedWith() { StartTreeDialogue(); GlobalInventoryController.AddItems(_name, _amountPerPickup); _destroyer.SelfDestruct(); }