Collecting multiple shield charges

Three levels of shield provide more protection. Order of layer is important to give the effect.
Game object for each shield level.
Shield game object settings.
Player script excerpt.
Player shield within Player script on Player game object.
ActivateShield() function in Player script is called when powerup is collected.
Shields protect player from damage.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store