Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstantComplete Mode #2

Open
BerndNK opened this issue Jun 24, 2019 · 0 comments
Open

InstantComplete Mode #2

BerndNK opened this issue Jun 24, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@BerndNK
Copy link
Owner

BerndNK commented Jun 24, 2019

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.

@BerndNK BerndNK added the enhancement New feature or request label Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant