Cleaning up the SpawnManager
I’ve created my SpawnManager, and its creating a new enemy every 5 seconds. Unfortunately, each of these enemies creates a new entry in the Hierarchy, which can cause it to get cluttered very quickly. To alleviate this issue, I created an EnemyContainer object to be the parent for all of these objects spawning, so they will only appear in the Hierarchy if you inspect the EnemyContainer object.
In order to get the Enemy objects to spawn within the EnemyContainer, I needed to assign the instantiated Enemies to a new GameObject. I could then take this object and assign it a new parent, the previously created EnemyContainer. Once complete, the new Enemy objects would populate the Hierarchy under the EnemyContainer object.