Hello. This is my script that I am going to use to spawn the enemies in my game. Currently, it spawns an object (from a random selection of object types) in a random position within min/max xyz values. I want to be able to spawn multiple objects at once, but when I copy the "Instantiate..." part of the script, it spawns different types of objects, but they are all at the exact same position, how would I make it so that the objects spawn at different locations? Thanks.
var objs : GameObject[];
position = Vector3(Random.Range(481.5735, 559.3441), -791.811, Random.Range(380.1254, 420.0663));
if (Projectile.Defeat < 10)
{ yield WaitForSeconds(5.0);
Instantiate(objs[(Random.Range(0, 3))], position, Quaternion.identity);
Instantiate(objs[(Random.Range(0, 3))], position, Quaternion.identity);
}