I have a gameobject with a bunch of empty gameobjects as children that I want to use as spawn positions.
I want to loop through each of these positions and have a certain amount of probability that an object spawns.
How could I write a foreach loop that takes the parent object and loops through all its children like it would with an array?