My journey becoming a Unity game developer: Coroutines with Unity. Activating the Triple Shot after the player collects the Triple Shot Powerup

Triple Shot lasers destroyed with their parent objects.
Changed tripleShotActive variable from Public test to a Private SerializeField.
TripleShotActive() method created to set isTripleShotActive variable to True.
TripleShotPowerDownRoutine() created to wait 5 seconds, then deactivate the Triple Shot.
Used script communication in the EnemyBehavior’s script to access the PlayerBehavior’s component.
Triple Shot lasers destroyed with their parent objects.
Using a coroutine to delay lasers fired every 0.3f seconds.

--

--

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
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.