示例#1
0
    //Coroutine
    IEnumerator LoadLevelWithDelay(string name)
    {
        //calling static method to fade back the cube
        FadeIn.FadBack();
        //We wait 2 seconds for our blink effect to execute
        yield return(new WaitForSeconds(1));

        //Load scene according to name
        SceneManager.LoadScene(name);
    }