private IEnumerator ShowButton(NVRButton button) { yield return(new WaitForSeconds(timeBeforeNextButton)); button.gameObject.GetComponent <Renderer>().materials[0].color = activeButtonColor; button.gameObject.GetComponent <Renderer>().materials[0].SetColor("_EmissionColor", activeButtonColor); activeButtonSound.Play(); count = true; }
void Awake() { button = GetComponent <NVRButton>(); }