Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: alexsan99 on August 14, 2014, 10:53:41 AM
-
I'm trying to make this effect in my game using NGUI:
-Player clicks a Button (buy something or trade)
-Panel is activated and Label/message shows up -> popup
-Panel has two Tweens attached: position and alpha
This works fine when I use such approach for popup windows, where there is a 'Close button' inside window that resets Tweens and disables Panel/Item. 'Close button' has "UIButtonActivate" script attached.
But I cannot make it work in similar way without button/Onclick event: I'm trying to disable Item and reset Tweens via script.
I need to deactivate and reset everything after a few seconds via script, otherwise Tweens are not repeating, of course.
What is the right way to do that?
wondering if there is a solution similar to UIButtonActivate script, but without onClick? after Tweening is done
-
Tweens can have an OnFinished notification set. You can call a function that starts a coroutine inside that waits X seconds then does something.