public void InventoryClick(InventoryDisplay inventory) { if (this.inventory == null) { return; } if (inventory.AddItem(item, count) != 0) { NullifySelection(); } }
public override void Action() { if (playerInventory.AddItem(this)) { //transform.gameObject.SetActive(false); } else { StartCoroutine(InventoryFullMessage()); } //deactivate, or move it to player inventory?? }