The current animations all have animation events added to them. These events tell the code when it is time to check if something was hit. Preferably you want this to happen at a certain time in the animation. For example when an arm or leg is completely stretched out. When working with new animations, you need to add these events manually.
- Click on the file that contains the animation.
- In the inspector, select the Animation tab at the top. (Models / Rig / Animation / Materials).
- In the inspector, select an animation clip.
- Scroll down until you see a rollout called ‘Events’.
When you expand this tab you see a timeline. On this timeline you can add events. In the “Function” textfield type “Check4Hit”. Hit “Apply” and the system will check for hits at that point in the animation.