public void OnActionButtonClick() { if (_cell.item.ItemType == ItemObjectType.Consumable) { Use?.Invoke(_cell); } else { if (slotType == InventorySlotType.Inventory) { Equip?.Invoke(_cell); } else { Unquip?.Invoke(_cell); } } popupPanel.SetActive(false); }
public override void UseItem(ItemContainer ic, PawnInstance owner, bool isQuantityPreviouslyEqualOne = false) { resourceUse.Invoke(Value, owner); }