Esempio n. 1
0
    public IEnumerator VRButtonAction()
    {
        optionsFade.ToggleFade();
        yield return(new WaitForSeconds(optionsFade.timeToFade));

        playerController.UpdateState(AppState.VIDEO_VR);

        gameObject.SetActive(false);
    }
Esempio n. 2
0
    public IEnumerator Begin()
    {
        if (!skipLogo)
        {
            canInteract = false;
            yield return(new WaitForSeconds(initalWait));

            logoFade.ToggleFade();
            yield return(new WaitForSeconds(logoDisplayTime));

            logoFade.ToggleFade();
            yield return(new WaitForSeconds(logoFade.timeToFade));

            logoFade.gameObject.SetActive(false);
            displayFade.ToggleFade();
            canInteract = true;
        }

        if (skipOptions)
        {
            StartCoroutine(VRButtonAction());
        }
    }