Time to create the enemies using an infinite spawn manager. We will utilize a Coroutine, a method which is used to delay certain events and a while loop.

First we create an empty object. This is just going to be our code holder. Then in the script we declare a variable for the Enemy game object. This object will get instantiated every 5 seconds on a random x coordinate, 7 on the y coordinate. This repeats every 5 seconds. The method also needs to get started using the StartCoroutine() method.

Coroutine code set up