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

Add: new ManualMotionDispatcher #177

Merged
merged 7 commits into from
Dec 20, 2024
Merged

Add: new ManualMotionDispatcher #177

merged 7 commits into from
Dec 20, 2024

Conversation

yn01-dev
Copy link
Owner

Add a new implementation of ManualMotionDispatcher.

In v1, ManualMotionDispatcher was a static class, but in v2, it is a normal class and can be instantiated.

var dispatcher = new ManualMotionDispatcher();

LMotion.Create(0f, 1f, 1f)
    .WithScheduler(dispatcher.Scheduler)
    .Bind(x => { });

dispatcher.Update(0.5);
dispatcher.Time = 1.0;

Also, ManualMotionDispatcher.Default is available as a global dispatcher. Also, the implementation of MotionScheduler.Manual is changed to be the same as ManualMotionDispatcher.Default.Scheduler.

@yn01-dev yn01-dev merged commit 16db144 into v2.0 Dec 20, 2024
@yn01-dev yn01-dev deleted the add-manualmotiondispatcher branch December 20, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant