Random Generation

I am working on a 2d game and I need the enemies to spawn randomly. It is a top down movement game .

@csprogrammer, Use Random.Range to generate the x and y locations you need to spawn the enemys at, and spawn them in a coroutine that uses yeld return WaitForSeconds( Random.Range ) to actually spawn them at random points in time.

Google those bold terms that and you’ll find a ton of resources that will get you on the road.