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

thx for the response.

I’m aware of this pattern as this is pretty much how most of the tutorials i’ve watched suggest. but i’m trying to avoid this approach because of the duplication involved, knowing a lot of variables can be read directly. simply reading variables should be thread-safe, right?