Hello, I could do with a bit of support as this is starting to take me ages to resolve :
I used to do this to fade and handle things on completion
TweenAlpha twn = TweenAlpha.Begin (transform.gameObject, fadeTime, 1f);
twn
.onFinished += new UITweener
.OnFinished (fadeInComplete
);
void fadeInComplete(UITweener tween)
{
// ...
}
going through the materials, I figure the updated code should read
TweenAlpha twn = TweenAlpha.Begin (transform.gameObject, fadeTime, 1f);
EventDelegate.Add(twn.onFinished, fadeInCompleted);
void fadeInCompleted()
{
Debug.Log ("test 123");
}
but with the updated code; "fadeInCompleted" is never called.
I can get around it using an anonymous delegate solution from this thread
http://www.tasharen.com/forum/index.php?topic=6265.0but it's not very neat and I'd like to avoid anonymous things where ever possible.
what am I doing wrong?
Cheers