private void Awake() { selectButton = FindObjectOfType <SelectButton>(); if (isTopButtonInMenu == true) { SetSelectedText(); } else if (GetComponent <Button>().interactable == false) { SetLockedText(); } else { SetText(); } selectedButtonScrollController = GetComponentInParent <SelectedButtonScrollController>(); dialRotateHandler = FindObjectOfType <DialRotateHandler>(); }
private new void Start() { base.Start(); selectedButtonScrollController = GetComponent <SelectedButtonScrollController>(); dialRotateHandler = FindObjectOfType <DialRotateHandler>(); }