示例#1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!isTextApperaed && other.gameObject.tag.Equals("Player"))
     {
         textDissolve.ResetProgress();
         textDissolve.ResetTimeElapsed();
         targetText.SetActive(true);
         isTextApperaed             = true;
         textDissolve.isStartAppear = true;
         StartCoroutine(WaitAndDisappear());
     }
 }
示例#2
0
    public void OneSentenceAppear(int num)
    {
        if (num == 0)
        {
            textDissolve.ResetProgress();
            TargetText.gameObject.SetActive(true);
            dialogNum = num;
        }

        TargetText.RenderText = dialog[0, num];
        textDissolve.ResetTimeElapsed();
        textDissolve.isStartAppear = true;
        string tempString = dialog[0, dialogNum].Replace("\n", "%");

        rows = Regex.Matches(tempString, "%").Count;
        StartCoroutine(WaitAndDisappear(waitTime * (rows + 1)));
    }