Is it possible to reference a state machine and/or its states?

I am not sure about thread safety as I haven’t had to worry about it in my projects.

I’ll link this just in case it is helpful and you didn’t see it already: