Skip to content

Does Execute function mandatory to return IStateTransitionFacade Transition #91

Answered by bazyleu
onedevapp asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for reaching out and sharing your questions about using UniState as a replacement for your existing state controller. Below are some suggestions and clarifications for each of the points you raised:

  1. The philosophy behind UniState is that it uses straightforward asynchronous code, so states are required to return results. However, you can still write in the style you mentioned - without having to do await _view.WaitForClick(token);. Here’s an example:
           UniTaskCompletionSource<StateTransitionInfo> _completionSource = new UniTaskCompletionSource<StateTransitionInfo>();

            public override UniTask<StateTransitionInfo> Execute(CancellationToken token)
            {

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bazyleu
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #75 on June 20, 2025 08:24.