how to get Child Object Array

i want to get the child Object Array in Script

for example) there is a box consist of blocks and “Mario”

first blocks’s kinematic is true
if mario collision with block block’s kinematic is false;
i want effect that break box consis of block

then it shoud be got that Array of block, child of box

how can i get that?

for (Transform child in transform)
{
// operations on child
}