コード例 #1
0
    IEnumerator Start()
    {
        yield return(new WaitForSeconds(initialWait));

        yield return(StartCoroutine(Fader.Canvas_FadeToOpaque(cvsGrp, fadeSpeed)));

        yield return(new WaitForSeconds(stayVisibleDuration));

        yield return(StartCoroutine(Fader.Canvas_FadeToTransparent(cvsGrp, fadeSpeed)));

        Application.LoadLevel(nextSceneName);
    }
コード例 #2
0
 void ReferenceCoroutines()
 {
     fadeToOpaque      = Fader.Canvas_FadeToOpaque(cvsGrp, fadeSpeed);
     fadeToTransparent = Fader.Canvas_FadeToTransparent(cvsGrp, fadeSpeed);
 }
 IEnumerator FadeOutCurrentCanvas()
 {
     yield return(StartCoroutine(Fader.Canvas_FadeToTransparent(GetCanvasBasedOnState(currentState), fadeSpeed)));
 }