- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
CrilleStyles · May 17, 2014 at 06:43 AM ·
animationattackmelee
Play attack animation on mousebutton
How do I play an attack animation on mouseclick?
Comment
Best Answer
Answer by Noob_Vulcan · May 17, 2014 at 07:04 AM
If(Input.GetMouseButtonDown(0)){
animation.Play("attack");
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613145228im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
please help with my melee attack animation 1 Answer
Animations Combo 0 Answers
Melee attacking, using force and health values 1 Answer
Not identifying the collider? 2 Answers