redbluegames / unity-text-typer

Text typing effect for Unity uGUI Text components
MIT License
307 stars 28 forks source link

Skip() bug when replaying dialogue queue #36

Closed mcoppola1939 closed 4 years ago

mcoppola1939 commented 4 years ago

When restarting a dialogue queue, the Skip() function seems to jump dialogue lines and fails after the first run through. Using the TextTyperTester example, I changed Start() to a function StartTyping() and have a button to call that function. After the dialogue finishes when using the "skip or advance" button, replaying the dialogue causes a bug on that button.

mcoppola1939 commented 4 years ago

I don't think i was right on the issue. Ended up using my button for StartTyping() to perform the same action as the "skip or advance" button. I changed the last line of the StartTyping() function from ShowScript() to HandlePrintNextClicked() and it ran through the same actions without any issues. Thanks for this code, the rich text parsing is really great :)