コード例 #1
0
ファイル: ClickableText.cs プロジェクト: mtwan625/Oracle
    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);
        }
    }
コード例 #2
0
 void Submit()
 {
     storyManager.GetNextDialogue(GetComponent <TMP_InputField>().text);
     GameObject.Find("SFX").GetComponent <AudioSource>().Play();
 }