Adding a health powerup
Currently, my player can replenish their ammo but not health that they’ve lost. What’s up with that!? Wait, why am I asking you? I developed the game.
This is going to be an identical process to what I did to create the ammo powerup. I got a cartoon-ish picture of a first-aid kit and used it to create a new health powerup prefab. I added a public method in the player script, called AddHealth, to add a life if the current lives are less than 3 and update the life-counter on the UI. Then I added a new case to the powerup switch-statement to execute the AddHealth method. Done-zo!