Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: pcutile on December 24, 2014, 02:09:40 PM

Title: tweens and OnFinished
Post by: pcutile 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.
Title: Re: tweens and OnFinished
Post by: pcutile on December 30, 2014, 09:24:40 AM
manco una risposta! vabbe faccio da solo
Title: Re: tweens and OnFinished
Post by: ArenMook 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.