Finite State Machine based on Mat Buckland's book but with some extra functionalities. Usefull for game implementations. For Unity Implementation.