Example #1
0
    /// <summary>
    /// Unhides the textbox to the player and displays text on the screen when interacted with
    /// </summary>
    public override void Interaction()
    {
        dialogueManager.ClearData();
        dialogueManager.LoadDataFromFile(textFile);

        // Unhide the dialogueWindow and reveal the dialogue window
        dialogueWindow.SetActive(true);

        // Start the typing coroutine in Dialogue
        StartCoroutine(dialogueManager.Type());
    }