“trible shot” power-up
It’s time to create our power-up! We’ve simulated triple shot through our Inspector through a toggle and now we need to make the actual pick-up!
Drag a sprite of our choosing to the Hierarchy, renaming that sprite to “Triple_Shot_Powerup”, resizing the sprite, giving it a 2D collider and checking the “Is Trigger” box (because this will be an “OnTriggerEnter2D()” event!), and lastly adding a “Rigidbody 2D” with “Gravity Scale” set to zero!
Let’s also get our “Powerup” script made in our Scripts folder then drag that into our Triple_Shot_Powerup!
With all that we can start writing our script for our Power-up!