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