I'm having trouble understanding how to use TweenAlpha repeatedly on the same object.
I have a sprite that is deactivated until 'reset' is clicked, this then activates a sprite that tweens from 0->1 covering the screen with a yellow sprite, and once the tween is finished, it calls another function to reload the scene and remove the yellow sprite.
This works the first time, but any attempt to reset the level again just activates the yellow sprite which remains at an alpha of 1. I've tried a few different things now, and they all end up with the second time having values of from=0 and to=0, OR from=1 and to=1 ...
I can't get my head around setting the to/from values with only 1 attribute in TweenAlpha.Begin()
float tweenAlphaInt = 1.0f;
public void ResetLevel()
{
NGUITools.SetActive(yellowOverlay, true);
UITweener resetTween = TweenAlpha.Begin(yellowOverlay, 1.0f, tweenAlphaInt);
}
The above code works the wrong way first time (tweens from 1->0) and then additional times remain at 0/0.