public void PlayText(ref AutoType typer) { //typer.Stop(); State = DisplayStringState.Running; typer.SetText(texts[currentIndex]); typer.PlayText(); }
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(); } }