Adding an Ammo collectable.

I guess since we limited the number of times our player can fire, we should add a collectable that will refill the ammo. In order to accomplish this, we will need to add another case to our powerup script, such as:

Then we need to add this new method to our player script.

Ammo set to 15 and Updated on screen to 15.

Now we need to create another powerup prefab for the collectable and set its powerupID to 3.

Then, in our SpawnManager; in the Hierarchy; we need to change the Powerups size to 4, and drag in the newly created prefab into Element 3.

Lastly, we need to change the code in our SpawnManager script to:

In order to encompass this new powerup, as one to spawn randomly.