Input Reading Script causes clashes between State Machines

Hello folks. So, I’m currently trying to develop a game, but I’m running into some problems. Currently, I have two state machines on my project, one for mounting an animal and one for when you’re on foot. The problem I have is, is that when you’re switching between them, you switch between the state machines as well. Problem is, because they’re both connected to the same input reader (the new one by Unity, with a script connected to it), that input reader somehow will re-activate the player’s on-foot statemachine (when it’s not supposed to), and introduce some logical errors for the player when he’s mounting an animal, because events happen with responses that were never meant to happen at that point in time

I’m guessing my best approach here is to create an alternative input reader script, dedicated to that, but what other solution is possible?

I think this is the problem you should really be solving, rather than immediately jumping to an ‘alternative input reader’.

Your input code should generally just read input. Let everything can read your input values and respond accordingly.