Example #1
0
    // Display Standard Text Box
    public void DisplayText(int objectID, TextZone textZone)
    {
        if (interactiveDialogue.ContainsKey(objectID))
        {
            tbManager = this.GetComponent <TextBoxManager>();

            if (tbManager != null)
            {
                tbManager.CreateTextBox(interactiveDialogue[objectID], null, textZone);
            }
            else
            {
                print("TextBoxManager is null!");
            }
        }
    }
Example #2
0
    // Display Shout Text Box
    public void DisplayText(int objectID, ShoutTextZone shoutZone)
    {
        if (shoutZone != null) // Pass the shoutZone as a reference to destroy it once text is finished.
        {
            if (interactiveDialogue.ContainsKey(objectID))
            {
                tbManager = this.GetComponent <TextBoxManager>();

                if (tbManager != null)
                {
                    tbManager.CreateTextBox(interactiveDialogue[objectID], shoutZone, null);
                }
                else
                {
                    print("TextBoxManager is null!");
                }
            }
        }
    }