Hey there!
I have problems changing from one animation to another while pressing buttons, here is the scenario:
1. The character walks around (walking animation) - pressing the Movementbuttons
2. An Enemy appears
3. Character walks into Enemy and is hit (hit animation) - pressing STILL the movementbuttons, while the hitanimation is played
4. Character is stuck in the hitanimation and "walks" with this animation, till I release the Buttons.
The movement and animation is done by a script with an "OnPress"-Method, the Rest (getting Hit by Enemy etc.) is done in PlayMaker.
I wanted to tackle it like this:
- while the Movementbuttons are still pressed and the Player gets hit <-> in that State where he gets hit I wanted to "disable" or "release" the Button internally. Is this possible, if so: how?