Powerup system¶
Micro Mayhem features a powerup system that allows the player to get bonus powerups
in addition to acquiring weapons from fallen enemies.
In this document I will describe how this system currently works.
Key parts¶
The main script in charge of the powerup system is the PowerupManager script. In this script
I define a (float) powerupValue which is used to determine which powerup is currently available
to the player.
This value is used to then look inside of an array called powerupList and view what the name
is of the current powerup.
The code for powerupManager looks as follows:
```c# PowerupManager.cs
```
Last update:
May 12, 2023