Author Topic: tweens and OnFinished  (Read 1611 times)

pcutile

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 81
    • View Profile
tweens and OnFinished
« on: December 24, 2014, 02:09:40 PM »
i use a label where attach a tweenscale and a tweenalpha to it.
it is disabled on game init and it come enabled when reach some condition (level up).
I have adding a script with a public void mynotification function that is called On finished of tweenalpha.
it work only the first time because when i enable label another time the tween functions are excuted with another timing, that is very very speed time. but duration time is 5. why first time work and second time with the same parameter it is showed with another speed? i set speed and enabled another time tweens inside Onfinished. this work for exact visualization when i want but timing is not equal.

pcutile

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 81
    • View Profile
Re: tweens and OnFinished
« Reply #1 on: December 30, 2014, 09:24:40 AM »
manco una risposta! vabbe faccio da solo

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: tweens and OnFinished
« Reply #2 on: December 30, 2014, 02:46:03 PM »
I don't quite understand your question there, but I suggest doing your TweenScale.Begin and TweenAlpha.Begin instead of enabling an existing one. This ensures that all values will be reset to the beginning.