// W.I.P. Combine functionality private void Temp() { // Combine items if (Input.GetKeyDown(KeyCode.C)) { string output = combineScript.CombineItem(inv.Inventory[0].ItemName, inv.Inventory[1].ItemName); // If combination exists if (output != null) { // Assuming you can only hold two items and the two become one inv.Inventory.Clear(); // Who knows if this will even work GameObject item = Resources.Load <GameObject>(output); inv.AddToInventory(item.GetComponent <IItem>()); } } }