2D Galaxy Shooter P2: Picking up Power-ups by holding a button!

For today’s challenge, I implemented a power-up pick-up feature!

When holding down the ‘C’ key, we can now have all power-ups, currently active, in the scene come to us.

In the player script, I created a new function called PickUpPowerUp(). It will hold all the logic to find the power-up and follow the player when the C button is…