예제 #1
0
 public void PlayText(ref AutoType typer)
 {
     //typer.Stop();
     State = DisplayStringState.Running;
     typer.SetText(texts[currentIndex]);
     typer.PlayText();
 }
예제 #2
0
        public void Continue(ref AutoType typer)
        {
            if(State == DisplayStringState.Pause)
            {
                currentIndex++;

                if (currentIndex >= texts.Count)
                {
                    State = DisplayStringState.Ended;
                    typer.Stop();
                    return;
                }
                PlayText(ref typer);
                return;
            }
            if(State == DisplayStringState.Running)
            {
                State = DisplayStringState.Pause;
                typer.Skip();
            }
        }