Author Topic: NGUI TypewriterEffect Error  (Read 1760 times)

johanesnw

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 22
    • View Profile
NGUI TypewriterEffect Error
« on: February 06, 2015, 08:55:05 PM »
I want to implement this script in my dialogue system.
and I tested the ResetToBeginning(); but this error occurs



what I did:
In the OnFinished EventDelegate List, I call this
  1. public void NextDialogue()
  2.     {
  3.         typer.ResetToBeginning();
  4.     }

any solution?  :D

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI TypewriterEffect Error
« Reply #1 on: February 06, 2015, 09:58:45 PM »
  1. StartCoroutine(DelayedRestart());
  1. IEnumerator DelayedRestart()
  2. {
  3.     yield return null;
  4.     tween.ResetTobeginning();
  5. }

johanesnw

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: NGUI TypewriterEffect Error
« Reply #2 on: February 07, 2015, 02:06:35 AM »
thanks mister  :D
works flawlessly