If you develop games and don't make use of state machines, I highly recommend you check them out. In this video I break down the basics of how I created a state machine within Unity, as well as what benefits it gave me.
I tried to keep this video as a high-level summary of how the state machine works. If you're curious about anything specific, feel free to ask in the comments and I can explain how things work in more depth