Exemplo n.º 1
0
    static public void FadeToBlack(float duration = 1.5f)
    {
        StateManager.Instance.DebugPush(GameState.fadeToBlack);

        instance.fadeSpeed = duration;

        // Make sure the texture is enabled.
        instance.GetComponent <GUITexture>().enabled = true;

        // Start fading towards black.
        instance.fadeToBlack   = true;
        instance.sceneStarting = false;
    }