void Start() { img = Picture.GetComponent <Image>(); button = Button.GetComponent <Image>(); txt = Text.GetComponent <Text>(); buttonText = ButtonText.GetComponent <Text>(); }
// 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>(); }