private void ContinueStory() { // Clear UI storyTextDisplay.ClearText(); storyChoiceButtons.ClearChoices(); currentTags.Clear(); // Ensure that there is text to get if (inkStory.canContinue) { // Get the next line string nextLine = ""; if (shouldContinueMaximally) { while (inkStory.canContinue) { nextLine += inkStory.Continue(); currentTags.AddRange(inkStory.currentTags); } } else { nextLine = inkStory.Continue(); currentTags.AddRange(inkStory.currentTags); } // Display text storyTextDisplay.DisplayText(nextLine); // Handle Tags InvokeTags(); } else if (inkStory.currentChoices.Count > 0) { storyChoiceButtons.DisplayChoices(inkStory.currentChoices, this); } else { Debug.LogError("The story is over! It can't continue!"); } }