public void CreatePart()
 {
     if (ForgePart != null && ForgeMaterial != null)
     {
         if ((mainCurrency.currency - resultFunc.GetPrice()) >= 0)
         {
             mainCurrency.CurrencyChange(-(resultFunc.price));
             GameObject.Find("InventoryBackground").GetComponent <InventoryBehviour>().AddItem(resultFunc);
         }
         else
         {
             resultFunc.DeleteItem(resultFunc);
             PartChosen.GetComponent <ItemFunction>().ForgeDeselectItem();
             MatChosen.GetComponent <ItemFunction>().ForgeDeselectItem();
             ForgePart     = null;
             ForgeMaterial = null;
             LastMatChosen = null;
             LastMatChosen = null;
             price         = 0;
             StartCoroutine(ForgeMessage(2));
         }
     }
     else
     {
         StartCoroutine(ForgeMessage(1));
     }
 }
 // Update is called once per frame
 void Update()
 {
     CraftingText.text = craftingInfo;
     S1Stats           = sword1.GetComponent <ItemFunction>();
     S2Stats           = sword2.GetComponent <ItemFunction>();
     S3Stats           = sword3.GetComponent <ItemFunction>();
     if (SlotsFull() && CraftCheck() && craftingSlot.tag != "Item")
     {
         CraftingSlot.ConvertToWeapon(craftingSlot.GetComponent <ItemFunction>(), S1Stats.GetQuality(), S2Stats.GetQuality(), S3Stats.GetQuality(), S1Stats.GetPrice(), S2Stats.GetPrice(), S3Stats.GetPrice(), "Sword", S1Stats.itemImage.GetComponent <Image>().color, S2Stats.itemImage.GetComponent <Image>().color, S3Stats.itemImage.GetComponent <Image>().color);
     }
     if (!SlotsFull())
     {
         if (craftingSlot.tag == "Item")
         {
             CraftingSlot.DeleteItem(CraftingSlot);
         }
     }
 }