コード例 #1
0
ファイル: Dialogue.cs プロジェクト: zedpoirier/-Archive
    public IEnumerator slowWrite()
    {
        text.text = "";
        foreach (char c in currentMessage)
        {
            text.text += c;
            yield return(new WaitForSeconds(waitTimeBetweenChar));
        }
        yield return(new WaitForSeconds(paddingTime));

        talker.zoomer.UnZoomOnConvo();
        talker.DisengageConversation();
        lover.checks++;
        yield return(new WaitForSeconds(paddingTime / 2));

        StartCoroutine("FadeAway");
        if (lover.checks >= 4)
        {
            talker.zoomer.LoverZoom();
        }
    }