예제 #1
0
    private void NextSentence()
    {
        currentlyTyping = true;

        if (myDialogueHandler.GetSentencesCount() > 0)
        {
            if (typeSentenceCoroutine != null)
            {
                StopCoroutine(typeSentenceCoroutine);
            }
            typeSentenceCoroutine = StartCoroutine(TypeSentence(myDialogueHandler.NextSentence()));
        }
        else if (myDialogueHandler.GetSentencesCount() == 0)
        {
            EndHoverChatBox();
        }
    }
예제 #2
0
 private void NextSentence()
 {
     if (m_CanGoToNextBeforeTextIsDone && dialogueBoxIsActive || CanGoToNextBeforeTextIsDoneSwitch && dialogueBoxIsActive)
     {
         CanGoToNextBeforeTextIsDoneSwitch = false;
         if (myDialogueHandler.GetSentencesCount() > 0)
         {
             if (typeSentenceCoroutine != null)
             {
                 StopCoroutine(typeSentenceCoroutine);
             }
             typeSentenceCoroutine = StartCoroutine(TypeSentence(myDialogueHandler.NextSentence()));
         }
         else if (myDialogueHandler.GetSentencesCount() == 0 && m_CloseAfterDialogueOver)
         {
             EndDialogueBox();
         }
     }
 }