void Check_Full() //เช็คว่าช่องเต็มแล้วหรือยัง { if (Value_in_Slot > 0) { value_text.text = Value_in_Slot.ToString(); if (This_is_hotkey == false) { can_drag = true; } } else { CodeItem_in_this_Slot = checkitem.getitemcode(0); value_text.text = ""; pic_item.sprite = checkitem.getpic(0); can_drag = false; } Chang_Pic(); }
void Chang_Pic() { for (int x = 0; x < check_Item.getitemcode_Length(); x++) { if (CodeItem == check_Item.getitemcode(x)) { pic_item.sprite = check_Item.getpic(x); } } }
void Chang_Pic() { value_text.text = Value_Have + " / " + Value_Need; for (int x = 0; x < checkitem.getitemcode_Length(); x++) { if (CodeItem_in_this_Slot == checkitem.getitemcode(x)) { pic_item.sprite = checkitem.getpic(x); } } }