Inheritance: MonoBehaviour, IPointerDownHandler
Exemple #1
0
 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>();
 }
Exemple #2
0
 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>();
 }