Today’s core programming challenge will focus on using a coroutine to control how our enemies spawn into the game.
Objective: Create a coroutine that will make it so more and more enemies appear per wave.
Adding Wave Indicator text
We’ll use a set of variables to control the wave spawning, and another set to set the wave indicator text on the screen. For the text, we’ll use TextMeshPro, a more advanced high-quality alternative to the regular UI text.