Ejemplo n.º 1
0
    IEnumerator PlayIntro()
    {
        StopCoroutine("LoseOxygen");
        fade.ChangeToBlack();
        yield return(new WaitForSeconds(1f));

        gameplayText.ChangeAndFade("Got... to... get out...", 2f);
        yield return(new WaitForSeconds(6f));

        gameplayText.ChangeAndFade("Carry the others to safety...", 2f);
        yield return(new WaitForSeconds(6f));

        gameplayText.ChangeAndFade("Before we all suffocate... or worse.", 2f);
        yield return(new WaitForSeconds(6f));

        fade.FadeFromBlack();
        yield return(new WaitForSeconds(1f));

        ChangeState(GameState.Play);
    }