Spawning Enemies



Spawning enemies is one of the most important features of my game so I created a script for it. It is assigned on the empty game object that has children based on the spawn points. I had to drag the zombies to their slots as prefabs before specifying the number of spawn points. I made different spawn points throughout the map to avoid the player from getting crowded. 

I gave high values on the enemy count to make more enemies spawn when the game starts. I spent lot of time on this part due to the incorrect positioning of the spawn points. Minority of the zombies fell down the ground and had trouble spawning the second zombie. 

Get Last Survivor