Hello,
I am trying to create chaining tweens attached to one gameobject:
TweenPosition -> TweenRotation from 0 to 90 -> TweenRotation from 90 to 180 (I have to separate rotation cause I need to do some things between)
When I did it via inspector all things work nice. But for some reasons it's better for me to create tweens in code.
I've tried it in this way:
var rotate01 = TweenRotation.Begin (transform.gameObject, 0.3f, rotation90);
rotate01.delay = 0.99f;
EventDelegate.Add (rotate01.onFinished, ReColor);
var rotate02 = TweenRotation.Begin (transform.gameObject, 0.3f, rotation180);
rotate02
.from = new Vector3
(0,
90,
0);rotate02.delay = 1.29f;
But it creates only one TweenRotation component.
So, is any way to attach more than one copy of tween component and setup them separately, or I have to do it in editor only?