示例#1
0
    IEnumerator FadeInAnimation(string levelName)
    {
        fadeCanvas.SetActive(true);
        fadeAnimator.Play("FadeIn");
        yield return(StartCoroutine(BridgeCorutine.WaitForRealSeconds(0.7f)));

        Application.LoadLevel(levelName);
        FadeOut();
    }
示例#2
0
 IEnumerator FadeOutAnimation()
 {
     fadeAnimator.Play("FadeOut");
     yield return(StartCoroutine(BridgeCorutine.WaitForRealSeconds(1f)));;
     fadeCanvas.SetActive(false);
 }