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