My journey becoming a Unity game developer: Using a Spawn Manager for Galaxy Invaders pt.1

Spawn Manager game object and script created.
Coroutine created to spawn enemy game objects every 5 seconds.
Calling the coroutine SpawnRoutine() inside the Start() function.
Enemies spawning every 5 seconds, but from the middle of the screen only.
Spawning enemies in the Update() function.
Setup to spawn enemies randomly on the X-axis.
Enemies spawning from random positions on the X-axis.

--

--

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