Okey so i have a room with 4 door spawn points
And a basic example script
Void Start() {
for(int i = 0; i < DoorAmount; i++)
{
int Choose = Random.Range (0, 4);
Instantiate (NormalDoor, DoorSpawn [Choose].position, DoorSpawn [Choose].rotation);
}
}
But how can i make that it checks if theres no door,and if its true,then spawn it? Because i sometimes get two doors spawned in same place.
I just dont know what method should i use.