// 0 = fade in, 1 = fade out, 2 = fade out and end scene
    IEnumerator WaitFade(bool fadeIn, int info)
    {
        // simply wait for the fade to be done
        while (!fader.FadeDone(fadeIn))
        {
            yield return(null);
        }

        // fade in
        if (info == 0)
        {
            NextText(); // get the next text when done fading in
        }
        // fade out
        else if (info == 1)
        {
            NextFrame();    // start the next frame when fading out
        }
        // fade out and end scene
        else
        {
            Reset();    // reset everything when the scene is finished
        }
    }