https://github.com/murphyne/bastion
https://github.com/murphyne/bastion
unity
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/murphyne/bastion
- Owner: murphyne
- Created: 2020-10-28T16:12:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-07-10T23:27:21.000Z (11 months ago)
- Last Synced: 2025-07-11T05:28:06.892Z (11 months ago)
- Topics: unity
- Language: C#
- Homepage:
- Size: 1.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bastion β
Finite State Machine implementation for Unity.
## Entities
- `State` is responsible for making decision on next state transitions.
It also implements state behaviour.
However, it is recommended to delegate responsibility of `State` to the list
of `Actions`. This will allow the combination of `Actions` to be changed
later from the inspector window.
- `Action` is purposed to represent one aspect of the state.
- `Agent` is a State Machine implementation, it stores and changes current state.
- `Context` provides access to fields and properties, required for decision making.
Usage example can be seen in the `SampleScene.unity`.