Hey,
i'm currently facing a little problem. I have Fades of all Widgets between my levels, but if i for example hover a button with UIButtonColor on it and then start the level load with my fade out, the button isn't correctly faded, i tried to destroy all instances of TweenAlpha and TweenColor, but this results in the fade isnt done at all:
For example:
foreach (UIWidget wid in widgets)
{
if (wid.gameObject.collider)
wid.gameObject.collider.enabled = false;
if (wid.gameObject.GetComponent<iTweenEvent>())
Destroy(wid.gameObject.GetComponent<iTweenEvent>());
if (wid.gameObject.GetComponent<TweenAlpha>())
Destroy(wid.gameObject.GetComponent<TweenAlpha>());
if (wid.gameObject.GetComponent<TweenColor>())
Destroy(wid.gameObject.GetComponent<TweenColor>());
TweenAlpha.Begin(wid.gameObject, duration, 0);
}
Got any suggestions for me?
Regards