UI buttons for animation are causing unexpected problem,please help
Hi. I've recently started working with UI buttons. I'm creating a menu of buttons to trigger character animations. So the method I'm using is that in the onclick section of the button I've assigned my character as the object and then the function I'm calling is Animator > Play(string) .
Ok so this seemed to be working perfectly and I was almost done creating the menu when I noticed a problem. After one of the buttons are clicked and the animation plays when I go back to normal/idle ,and then press the spacebar the character no longer jumps. It cycles through the different UI button animations each time it's pressed.
Can anyone tell me why this might be happening and how to fix it? I'd be greatful for any help you might be able to give. Thanks in advance.