Esempio n. 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);
        }
    }
Esempio n. 2
0
    public void StartEventBattle(GhostParty _ghostParty)
    {
        eventBattle = true;
        if (bgPanel != null)
        {
            bgPanel.SetActive(false);
            finalBattle = true;
        }

        playerHud.SetPlayerData();
        eventParty = _ghostParty;
        SetEventParty();
        StartCoroutine(SetupBattle());
    }
Esempio n. 3
0
 public void EndDialogue(bool freeRoam, GhostParty ghostParty)
 {
     if (freeRoam)
     {
         state = GameState.FreeRoam;
         playerMove.onEventFalse();
     }
     else
     {
         state = GameState.Battle;
         battleSystem.gameObject.SetActive(true);
         mainCamera.gameObject.SetActive(false);
         playerMove.onEventFalse();
         battleSystem.StartEventBattle(ghostParty);
     }
 }
Esempio n. 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));
        }
    }
Esempio n. 5
0
 public void StartEventBattle(GhostParty _ghostParty)
 {
     eventParty = _ghostParty;
     SetEventParty();
     SetupBattle();
 }