public void OnValueChange() { TestUIController tuc = GetComponentInParent <TestUIController>(); if (tuc) { tuc.OnAxisTitleUpdate(); } }
// Start is called before the first frame update private void Awake() { if (instance == null) { instance = this; } if (this != instance) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); fadeScreen = GameObject.FindGameObjectWithTag("FadeScreen"); StartCoroutine(FadeIn()); }