Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/shlifedev/async-finite-state-machine
- Owner: shlifedev
- License: mit
- Created: 2024-03-31T08:34:03.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-02T14:50:03.000Z (9 months ago)
- Last Synced: 2024-04-03T02:36:20.036Z (9 months ago)
- Topics: async-fsm, finite-state-machine, fsm, unitask, unity, unity-fsm, unityengine
- Language: C#
- Homepage: https://github.com/shlifedev/async-finite-state-machine
- Size: 109 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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