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.