How do I play an animation completely with Input.GetButton ? It'll only play the complete animation if the button is held down.
if (Input.GetButton ("Attack1")&& grounded==true && IsMoving==false) {
Anim.Play("Attack1");
IsAttacking=true;
}
That is the snippet of code I am using for attacking. So far it works, but only if I hold down the button. I want it to play completely tho. Any help ?
↧