Adding Explosions to the Enemy.

We need to add an explosion to our enemies when they are destroyed by a laser or run into the player.

First, we open our Enemy prefab and click on our Animation tab. If the Animation tab is not open, you can open it by going to Window > Animation > Animation. We name the animation Enemy_Explosion_anim then save it.

Create an animation for the enemy explosion.