public void LoadInfoInPanel(ScriptableObject info) { Recipe recipe = info as Recipe; for (int i = 0; i < recipesSlots.Length; i++) { if (i < recipesSlots.Length) { recipesSlots[i].AddItem(recipe.materials[i]); resultSlot.AddItem(recipe.resultItem); } else { recipesSlots[i].ClearSlot(); resultSlot.ClearSlot(); } } currentBlacksmith.chosenRecipe = recipe; craftButton.onLeft.AddListener(currentBlacksmith.Craft); }
private void DeEquipItem(ItemSlot slot, Item item) { slot.ClearSlot(slot.Item); }