Mecanim attack State won't stop Looping or exit

I modified the the BotControl Script from the Mecanim tutorial to include an attack state. I set it up where the attack animation plays when I hit a button. The animation just loops forever even though I set up the state machine to return to the idle state after the animation plays.

Can anyone help?


hey robert i found the solution… got to ur animator and look at the name of ur state… it has to be the same as the one that stands in the script. just rename it i had the exacpt ssame problem :slight_smile: