public void Progress() { if (story.canContinue) { GuiManager.Display(character.name, story.Continue()); } else { foreach (string tag in currentTags) { Debug.Log(tag); } if (story.currentChoices.Count > 0) { ManageChoices(); } else if (!currentTags.Contains("Ended")) { currentTags = currentTags.Union(story.currentTags).ToList(); if (currentTags.Contains("GoodAge") && !currentTags.Contains("GoodAgeEnded")) { currentTags.Remove("Ended"); story.ChoosePathString("GoodAge"); } else { GuiManager.HideDisplay(); InputManager.inDialogue = false; inputManager.ownDialogue = false; } } else { if (currentTags.Contains("GoodAge") && !currentTags.Contains("GoodAgeEnded")) { currentTags.Remove("Ended"); story.ChoosePathString("GoodAge"); } else { currentTags.Remove("Ended"); story.ChoosePathString("OneLiner"); } } } }
private void ManageChoices() { GuiManager.Display("Vous", story.currentChoices[0].text); story.ChooseChoiceIndex(0); }