Road TO Dev — Boss Damage State
Objective: Create a way to visualize to the player that the boss has become damaged signalling the beginning of phase two
Step 1: Add whatever images you wish to use to animate damage effects here I’ve added BlackSmoke, Electricity, and HitDamage.
Step 2: Create an empty object and put it at 0,0,0. Then prefab it and open the boss prefab to child the prefab onto the boss.
Step 3: On the boss prefab drag in the animations you’d like you use to child the empty object called Damaged for me. Place them on the boss where you like.
Step 4: Create the variable to hold the new Damaged object on the boss script don’t forget to drag the empty game object damaged onto the boss. Remember to use the prefab from projects
Step 5: Set it to be inactive at start
Step 6: Once the first wave has finished activate the damaged state
Doing it this way you can add more animations as you see fit to the damage item and you won’t need to change anything in the code.