May someone give me advice on how to optimize this system?

lol I think in the opposite direction
What do you want enums for?
with bools you can create more options like crouch and walk