Road TO Dev — Let’s add a shield!

Let’s create the actual power up item. If you’ve been following me you already know how to setup the animations so I am not rehashing that. Set the powerup id to whatever it is for you.

Do not forget to create the box collider as trigger, ridgidbody no gravity and adjust your sizes. Also create the new holder on the spawn manager for our new powerup and place it there.

Now on our spawn manager script we need to account for the extra object in our powerup spawn routine that’s easy we just need to increase the value on the random range to 3 instead of 2.

This should have our shield powerup spawning at random just like the others.