void Start() { inven = (CreateInventory)FindObjectOfType(typeof(CreateInventory)); checkitem = (Check_Item)FindObjectOfType(typeof(Check_Item)); if (what_code_item_can_get == "#00x-xx") { this.gameObject.name = My_Slot_Number.ToString(); } }
void Start() { createinven = (CreateInventory)FindObjectOfType(typeof(CreateInventory)); check_Item = (Check_Item)FindObjectOfType(typeof(Check_Item)); This_Button = this.gameObject.GetComponent <Button>(); This_Button.interactable = false; Check_Item_For_Craft(); Chang_Pic(); }
void Start() { checkitem = (Check_Item)FindObjectOfType(typeof(Check_Item)); }