InstantComplete Mode
Opened this issue · 0 comments
BerndNK commented
I want a property for TweenHandler, to instantly complete Tweens.
var handler = new TweenHandler();
handler.InstantComplete(true);
handler.Add(point.Tween(x => x.X).To(20).In(1.0).OnComplete(OnCompleteHandler).OnUpdate(OnUpdateHandler));
// at this point point.x equals 20, OnUpdate- and OnCompleteHandler have been called
The basic idea is to simply 'disable' all animations for a handler, while still having the full functionality of event handling.