Beispiel #1
0
    IEnumerator IntroTextProgression()
    {
        for (int i = 0; i < introTexts.Count; i++)
        {
            while (txtMan.isRollingMaster)
            {
                yield return(new WaitForSeconds(1));
            }
            if (gm.state != GameState.Agency)
            {
                break;
            }
            yield return(new WaitForSeconds(1.5f));

            txtMan.AddToMaster(introTexts[i]);
        }
        while (txtMan.isRollingMaster)
        {
            yield return(new WaitForEndOfFrame());
        }
        yield return(new WaitForSeconds(2f));

        if (gm.state == GameState.Agency)
        {
            txtMan.masterString = "";
            gm.ChangeState(GameState.Game);
        }
    }