- Home /
Mecanim Trigger Stays too long true
Hello everybody,
after I press the attackbutton two times, the attack trigger stays too long true, thus when the animation is in combatstate it automatically executes another attack.
In my script I only use
if (Input.GetButtonDown("ATK1")) {
animator.SetTrigger("attackTrigger");
}
Excuse me for my englisch. I hope someone could help me.
mecanimtrigger.jpg
(203.0 kB)
Comment
Best Answer
Answer by 0tacun · Jan 15, 2014 at 08:09 PM
no space between the states = not good.
mecanimtrigger.jpg
(86.2 kB)
When transition takes 0 seconds, it all happens during the same frame.