Phase 1 — Secondary Fire Powerup

Nicholas Lim
Jun 11, 2021

Aside from the Triple Shot powerup, the Player will be given another alternate fire mode powerup, a 360 multi shot.

First I set up the Powerup object the same way as before.

Next I create a new laser type prefab by arranging eight lasers around the player. This will be what the Player instantiates.

Then I add this Powerup to the Spawn Manager, while adding new code in the Powerup script to activate this 360 Laser on the Player when collected.

Lastly update the Player script to toggle this fire mode on when collected and start the coroutine timer to turn it off after five seconds.

--

--