private void OnEnable() { goldText.color = Color.yellow; if (statesMenuUIScript != null) { statesMenuUIScript = GetComponentInParent <StatesMenuUIScript>(); } }
private void Awake() { if (statesMenuUIScript != null) { statesMenuUIScript = GetComponentInParent <StatesMenuUIScript>(); } goldText.color = Color.yellow; }