예제 #1
0
    public void NextLine()
    {
        if (activeLineIndex < dialogue.lines.Length)
        {
            DisplayLine();
        }
        else if (dialogue.getFreeRoam())
        {
            UIleft.HideUI();
            UIright.HideUI();

            activeLineIndex = 0;

            onDialogueOver(true, null);
        }
        else if (!dialogue.getFreeRoam())
        {
            UIleft.HideUI();
            UIright.HideUI();

            activeLineIndex = 0;
            eventParty      = dialogue.ghostParty;
            onDialogueOver(false, eventParty);
        }
    }
예제 #2
0
    private void SetDialogue(DialogueUI show, DialogueUI hide, string text)
    {
        show.Dialogue = text;
        show.ShowUI();

        hide.HideUI();
    }
예제 #3
0
 private void SetDialogue(DialogueUI show, DialogueUI hide, string text)
 {
     show.ShowUI();
     hide.HideUI();
     show.Dialogue(text);
     typingState = TypingState.Typing;
 }
예제 #4
0
    public void NextLine()
    {
        if (activeLineIndex < dialogue.lines.Length)
        {
            DisplayLine();
        }
        else if (dialogue.inGameDialogue)
        {
            if (dialogue.getFreeRoam())
            {
                UIleft.HideUI();
                UIright.HideUI();

                activeLineIndex = 0;

                onDialogueOver(true, null);
            }
            else if (!dialogue.getFreeRoam())
            {
                UIleft.HideUI();
                UIright.HideUI();

                activeLineIndex = 0;
                eventParty      = dialogue.ghostParty;
                onDialogueOver(false, eventParty);
            }
        }
        else if (!dialogue.inGameDialogue)
        {
            speakerLeft.SetActive(false);
            speakerRight.SetActive(false);
            typingState  = TypingState.Finished;
            audio.volume = 0;
            StartCoroutine(scene.LoadNextScene(dialogue.nextSceneName));
        }
    }