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