Posted April 08, 2022 by Hellfansing
The player upgrade script changes the player sprite depending on the current upgrade level. It also restarts the mission in case of enemy contact at upgrade level 0 or a game over if the player has only one life left at that point.
Like the player attack script, the player upgrade script is activated in the logic of each scene as soon as the player touches colission group one.