Author Topic: TypewriterEffect Bug  (Read 2708 times)

herhangi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 2
    • View Profile
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.

  1. if (mCurrentOffset >= mFullText.Length) { ... }
  2. else if (mFade.size != 0) { ... }
  3. else if (mCurrentOffset >= mFullText.Length) { ... } // Never executed!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TypewriterEffect Bug
« Reply #1 on: July 06, 2015, 07:56:13 PM »
Hmm... typo I guess. Thanks for bringing it to my attention.