Exemplo n.º 1
0
    // ------------------------------------------------------------------------

    public IEnumerator levelCompleted()
    {
        gui.notify("Level completed!", 3);
        yield return(new WaitForSeconds(4));

        sceneFader.endScene();
        while (sceneFader.Blending)
        {
            yield return(null);
        }
        GameObject.Find("Level").GetComponent <LevelLoader>().next();
        sceneFader.startScene();
    }