Array script boolean

Hello guys, i have prob. I have array of Transform.
This transforms have script attached to them. I need to open door when all scripts boolean isActive = will be true;
So my code is:

Update()
        {
        for(int i = 0; i < Activators.Length; i++)
        		{
        			activators = Activators*.GetComponent<m_Activator>();*

if(activators.isActive) // How i need to change this?
{
//DO SOMETHING.

* * }
}

}

}

So this works if i do one activator bool isActive = true; I need to it work when i do
isActive = true for all Transforms with this scripts. What should i do? Thanks.

You do this-

bool allActive = true;
foreach(GameObject activator in activators)
{
    if(!activators.GetComponent<m_Activator>().isActive)
    {
        allActive = false;
    }
}

if(allActive)
{
    // They're all active.
}

I’m assuming activators is an array of GameObjects? Otherwise, just change the type at the start of the foreach, it should work for just about anything.