void Awake() { _instance = this; image_icon = transform.GetChild(0).GetComponent<Image>(); text = transform.GetChild(1).GetComponent<Text>(); //get the text(itemValue GameObject) of the item image_cool = transform.GetChild(2).GetComponent<Image>(); }
void Awake() { _instance = this; image_icon = transform.GetChild(0).GetComponent <Image>(); text = transform.GetChild(1).GetComponent <Text>(); //get the text(itemValue GameObject) of the item image_cool = transform.GetChild(2).GetComponent <Image>(); }