void Start() { elderhandler = gameObject.GetComponentInParent <elderhandler>(); init = GameObject.FindGameObjectWithTag("initializer").GetComponent <script_Initializer>(); button = gameObject.GetComponent <Button>(); image = button.GetComponent <Image>(); gameObject.GetComponent <Button>().onClick.AddListener(() => { prebuttonclick(); }); }
void Start() { elderhandler = gameObject.GetComponentInParent <elderhandler>(); gameObject.GetComponent <Button>().onClick.AddListener(() => { prebuttonclick(); }); button = gameObject.GetComponent <Button>(); image = button.GetComponent <Image>(); text = transform.GetChild(0).GetComponent <Text>(); }
void Start() { init = GameObject.FindGameObjectWithTag("initializer").GetComponent <script_Initializer>(); fileloc_donations = init.fileloc_donations; gameObject.GetComponent <Button>().onClick.AddListener(() => { buttonclick(); }); elderhandler = gameObject.GetComponentInParent <elderhandler>(); brandfield = GameObject.Find("InputField_brand").GetComponent <InputField>(); flavorfield = GameObject.Find("InputField_flavor").GetComponent <InputField>(); qtyfield = GameObject.Find("InputField_qty").GetComponent <InputField>(); costfield = GameObject.Find("InputField_cost").GetComponent <InputField>(); }
void Start() { elderhandler = gameObject.GetComponentInParent <elderhandler>(); gameObject.GetComponent <Button>().onClick.AddListener(() => { buttonclick(); }); }