Exemple #1
0
    void ClickLink()
    {
        int index = TMP_TextUtilities.FindIntersectingLink(text, Input.mousePosition, null);

        if (index > -1)
        {
            TMP_LinkInfo info  = text.textInfo.linkInfo[index];
            string       input = info.GetLinkID(); // <link = input> input </link>

            sfx.Play();
            storyManager.GetNextDialogue(input);
        }
    }
Exemple #2
0
 void Submit()
 {
     storyManager.GetNextDialogue(GetComponent <TMP_InputField>().text);
     GameObject.Find("SFX").GetComponent <AudioSource>().Play();
 }