public void CraftItem() { if (itemCollector && craftingRecipe.MaterialsPresent(itemCollector.inventory)) { itemCollector.Craft(craftingRecipe); } }