Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shlifedev/async-finite-state-machine

Async StateMachine For Unity.
https://github.com/shlifedev/async-finite-state-machine

async-fsm finite-state-machine fsm unitask unity unity-fsm unityengine

Last synced: 25 days ago
JSON representation

Async StateMachine For Unity.

Awesome Lists containing this project

README

        

# AsyncStateMachine

Asynchronous state machines help you write smarter game logic.

- Support await OnEnter
- Support await OnUpdate
- Support await OnExit
- If you enter a state called A, then state A behaves as follows.
`OnEnter (await) -> OnUpdate (await) -> Wait for ChangeState`
- If you want to transition from state A to state B, you will wait until the Task of the Enter/Exit function in state A is finished.

You can see Example below
[Example Source](https://github.com/shlifedev/async-finite-state-machine/tree/main/Example)

https://github.com/shlifedev/async-finite-state-machine/assets/49047211/d26aefe9-1b41-41fc-9206-a6c5c8bc8efa