📌 Description
The StateMachine currently handles state transitions well but does not allow additional information to be passed between states. We need to improve this functionality to allow parameters to be included.
🎯 Goals
- Add parameter support for state transitions.
- Improve state-to-state communication.
- Create unit tests to ensure transitions work correctly.
📂 Related Files
state_machine/state_machine.gd
state_machine/state.gd
✅ Acceptance Criteria
📌 Description
The
StateMachinecurrently handles state transitions well but does not allow additional information to be passed between states. We need to improve this functionality to allow parameters to be included.🎯 Goals
📂 Related Files
state_machine/state_machine.gdstate_machine/state.gd✅ Acceptance Criteria
StateMachinecan store the last state.