Пример #1
0
 // Use this for initialization
 void Awake()
 {
     instance = this;
     pointer = this.gameObject;
     myImage = this.transform.FindChild("Image").GetComponent<Image>();
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     instance = this;
     pointer  = this.gameObject;
     myImage  = this.transform.FindChild("Image").GetComponent <Image>();
 }