The State Machine Library is a versatile and feature-rich state machine library designed to simplify the implementation of state-based systems in games. It enables developers to define states, handle state transitions, and execute specific actions when entering and exiting states, making it an invaluable tool for a wide range of applications.
Feel free to browse through the library code here : State Machine Package Link