- Edited
xyz I see what you're saying, but the main reason I'm using a state machine is to keep my code manageable and understandable, and to be able to reuse states. My player character was originally one big script but I decided it was becoming too large and unwieldy and remade it as a state machine. If there's a better way to have short/understandable code while keeping my code in one script I'll do that instead, but right now I'm using a state machine for those reasons.