Esempio n. 1
0
 private void Awake()
 {
     balancingDisplay = GetComponentInParent <BalancingDisplay>();
     textMesh         = GetComponent <TextMeshProUGUI>();
 }
Esempio n. 2
0
 private void OnEnable()
 {
     GetComponent <Button>().onClick.AddListener(OnButtonClicked);
     balancingDisplay = GetComponentInParent <BalancingDisplay>();
 }
 private void Awake()
 {
     balancingDisplay = GetComponentInParent <BalancingDisplay>();
 }