Example #1
0
 void Start()
 {
     img        = Picture.GetComponent <Image>();
     button     = Button.GetComponent <Image>();
     txt        = Text.GetComponent <Text>();
     buttonText = ButtonText.GetComponent <Text>();
 }
Example #2
0
 // Start is called before the first frame update
 // comment
 void Start()
 {
     VirtualButton.GetComponent <VirtualButtonBehaviour>().RegisterEventHandler(this);
     DisplayText = GameObject.Find("DisplayText");
     ButtonText  = GameObject.Find("ButtonText");
     myText      = DisplayText.GetComponent <TextMesh>();
     buttonText  = ButtonText.GetComponent <TextMesh>();
 }