Example #1
0
    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;
    }
Example #2
0
 void Awake()
 {
     button = GetComponent <NVRButton>();
 }