public IEnumerator VRButtonAction() { optionsFade.ToggleFade(); yield return(new WaitForSeconds(optionsFade.timeToFade)); playerController.UpdateState(AppState.VIDEO_VR); gameObject.SetActive(false); }
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()); } }