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