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); } }
void Submit() { storyManager.GetNextDialogue(GetComponent <TMP_InputField>().text); GameObject.Find("SFX").GetComponent <AudioSource>().Play(); }