Normal i would use the following code to start the tween.
weenTransform TweenTwo = TweenTransform.Begin(this.gameObject,3f,animationAncorTwo);
The problem is that if i start the tween this way i can use the delay:
I tried to create the tween fist and start it later, like this:
TweenTransform TweenTwo
= new TweenTransform
();TweenTwo.delay = 5f;
TweenTwo.Play(true);
But i get errors...
NullReferenceException
UITweener.Play (Boolean forward) (at Assets/NGUI/Scripts/Tweening/UITweener.cs:283)
HandDemo.SteppTwo () (at Assets/GUI/Scripts/HandDemo.cs:38)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UITweener:Update() (at Assets/NGUI/Scripts/Tweening/UITweener.cs:188)
What the correct way to use the delay ?
EDIT: If found out how:
TweenTransform TweenTwo = this.gameObject.AddComponent<TweenTransform>();
TweenTwo.delay = 5f;
TweenTwo.Play(true);
Using the keyword new was not a nice idea