1
NGUI 3 Support / TypewriterEffect Bug
« on: July 03, 2015, 06:13:11 PM »
I was implementing typewriter effect for tutorial system and noticed that "OnFinished" is not called when typewriter is completed in update, there is no problem if it is finished with Finish() method.
The problem lies in Line 211 and Line 266 as both of those boolean statements are same where as they are in same if-else block, so Line 266's block never executed.
The problem lies in Line 211 and Line 266 as both of those boolean statements are same where as they are in same if-else block, so Line 266's block never executed.
- if (mCurrentOffset >= mFullText.Length) { ... }
- else if (mFade.size != 0) { ... }
- else if (mCurrentOffset >= mFullText.Length) { ... } // Never executed!
