Skip to content

Conversation

weicai995
Copy link

Add an extension to the DelayType and PlayerLoopTiming

Here is an example to create a manual type task.

UniTask.Delay(TimeSpan.FromSeconds(value), DelayType.ManualTime, PlayerLoopTiming.ManualUpdate,
                cancellationToken);

Use method PlayerLoopHelper.ManualUpdate(); to manually update this type of task. It provides a good way to keep synchronization in Lockstep sync.

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