Example #1
0
    /// <summary>
    /// Clear any dialogue lines or choices
    /// currently shown.
    /// </summary>
    public void ClearDialogue()
    {
        currentNode = null;
        foreach (DialogueUIChoice choice in choiceView.GetComponentsInChildren <DialogueUIChoice>())
        {
            Destroy(choice.gameObject);
        }
        choiceView.SetActive(false);
        lineView.SetActive(false);

        if (currentSpeaker != null)
        {
            currentSpeaker.ShowSpeechBubble(false);
            currentSpeaker = null;
        }
    }