コード例 #1
0
 // 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);
         }
     }
 }