- Home /
Animation after 5 shots
Hello friends unity 3d.
I would like to know how you can run an animation after hitting 5 times a cube that is connected to the animation of my enemy. Let me explain. I created an animation of a spider with a death, I want to insert a cube is hit to kill it after 5 shots. Do you know any script that can do this? Thanks to all!
Answer by Berenger · Mar 09, 2012 at 11:19 PM
Split the tasks. You need to detect when the cube hit the spider, you need to increase a variable and finally you need to play an animation when that variable is high enough.
Your answer
![](https://koobas.hobune.stream/wayback/20220613064940im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation / Distance 0 Answers
how to get a animation from other script on colision 1 Answer
How to call animation from another Script in C#? 1 Answer
Animation problems 1 Answer
How to click a 3d object in unity3d? 3 Answers