Spawning Objects in Unity without the Clutter

  1. Create a reference to EnemySpawnner gameobject in SpawnManager script. It can be enemySpawnner. Save the script.
  2. Drag and drop the EnemySpawnner child object from hierarchy to its reference in SpawnManager
  3. Create a new GameObject variable, it could be newEnemy, and assign to it an instantiate function
  4. Set enemySpawnner as newEnemy’s parent

--

--

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