Game Development Reference
In-Depth Information
This will bring up the
Edit Animation Event
window, shown in the following screenshot,
where you can select the function we just created:
Now, when the animation begins, it will also trigger the particle effect to start spawning
and explode the blood particles in a very tastily manner.
Connecting the dots
If you now select the
GoblinEnemy
game object in the
Hierarchy
window and open the
Animator
tab (
Window
|
Animator
in the menu), you will see the new animation clip as
a new state in the
GoblinAI
animator sheet.