public BaseTween ColorTween(Image image, Color to, float t) { ColorTween tween = TweenPool.GetColorTween(image.color, to, t); tween.SetOnUpdateColor(delegate(Color c) { if (image == null) { CancelTween(tween); return; } image.color = c; }); return(ProcessTween(tween)); }
public BaseTween ColorTween(SpriteRenderer sprite, Color to, float t) { ColorTween tween = TweenPool.GetColorTween(sprite.color, to, t); tween.SetOnUpdateColor(delegate(Color c) { if (sprite == null) { TweenPool.FinishTween(tween); return; } sprite.color = c; }); return(ProcessTween(tween)); }
public BaseTween ColorTween(Color from, Color to, float t) { ColorTween tween = TweenPool.GetColorTween(from, to, t); return(ProcessTween(tween)); }