How can I get all objects parented to an empty game object and set their active property to true?

I have been expanding upon the Roll A Ball tutorial and decided I would make a play again button. To do this I need to set all the pickup objects active values to true.

I tried a for loop but that didn’t seem to work.
I am not interested in JS. I only want to use C#.

Another thought came to me as I was writing this.
Would loading the scene reset the level?

You need to access the parent gameobject like this:

Transform parentObject;

then you do a foreach loop:

foreach(Transform child in parentObject)
{
    //your code
    //"child" is the variable for all children
    //example: 
    child.someBool = true;
}