Hi,
I am using NGUI for a project. I would also like to use some of the tween animations scripts for game objects other than NGUI items. Is this possible? I have a game object that responds to a custom C# event. When the event occurs, I want the object to move. I placed the TweenPosition script on my object. My object also has a script which is listening for my custom event.
I have tried to start the tween animation as follows.
void HandleSwipeDetectorOnSwipe (SwipeDetector.SwipeDirection swipe)
{
TweenPosition
.Begin(gameObject, 2f,
new Vector3
(0,
500,
0)); }
However, this doesn't trigger the animation. If I simply place values in the "To" field of the TweenPosition script in the Unity Editor, the game object will move. Is it possible to use TweenPosition to animate other objects in my scene beyond NGUI items?
Thanks
Wes