A simple implementation of a state machine to be used in Unity game engine.
- a slightly modified version of the state machine used in the UIToolkit Sample QuizU
- in this article the developers explain their state pattern implementation
- have a look at my documentation to see what changes were made
- Open the Unity package manager via Window -> Package Manager.
- Click the plus icon on the top left and select Add package from git URL
- Use
https://github.com/3LK3/Unity.StateMachine.git
as URL.
Add the repository as a dependency manually to your <YourProject>/Packages/manifest.json
.
{
"dependencies": {
"...",
"party.elke.unity.statemachine": "https://github.com/3LK3/Unity.StateMachine.git#0.0.1"
}
}
You can choose a specific version from this list.