Example #1
0
 private void Awake()
 {
     _image  = GetComponentInChildren <Image>();
     _button = GetComponentInChildren <Button>();
     _button.onClick.AddListener(OnButtonClick);
     _upgradeTab = GameObject.FindGameObjectWithTag("UpgradeTab").GetComponent <UpgradeTab>();
 }
Example #2
0
 private void OnButtonClick()
 {
     UpgradeTab.UpdateButtonClicked(Cultivation);
 }