Been playing with the OnStartSpeech and OnStopSpeech delegates.
My Speech system is setup to keep the Speech Window on the screen until the user dismisses it. The speech is also set up to scroll the text into the window.
As such, OnStopSpeech only fires once the user dismisses the window. Is there a way to listen for text to stop scrolling?
Two fold, trying to set up a "prompt" that shows the user that they can press a button to continue, and to work on lipsynching (Which, effectively, continues until the window is dismissed. Not the behaviour I'd like)
Comments
Goto line 63, or directly after the "Speech" section, after the function Call_OnStopSpeech, add this:
Next, open Scripts\Speech\Speech.cs, goto line: 298 and after displayText ="" add:
Find scrollAmount += KickStarter.speechManager.textScrollSpeed / 100f / log.fullText.Length; then directly below it, within the curly braces and underneath scrollAmount = 1f; around line: 352 add:
Now, look for the first instance of if (KickStarter.speechManager.endScrollBeforeSkip && CanScroll () && displayText != log.fullText) (around line 539), directly below displayText = log.fullText; add:
And lastly, find the second instance of if (KickStarter.speechManager.endScrollBeforeSkip && CanScroll () && displayText != log.fullText) (around line 583), then directly ABOVE while (gapIndex < speechGaps.Count && speechGaps[gapIndex].waitTime >= 0) add:
Hopefully you'll find that useful. ^^ Guess this can go into the Extending section, now...