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); } }
public void StartEventBattle(GhostParty _ghostParty) { eventBattle = true; if (bgPanel != null) { bgPanel.SetActive(false); finalBattle = true; } playerHud.SetPlayerData(); eventParty = _ghostParty; SetEventParty(); StartCoroutine(SetupBattle()); }
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); } }
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)); } }
public void StartEventBattle(GhostParty _ghostParty) { eventParty = _ghostParty; SetEventParty(); SetupBattle(); }