c# call a bool from another script
//class A
public class ClassA: MonoBehaviour
{
public bool isCounting;
void Start()
{
isCounting = true;
}
}
//class B
public class ClassB: MonoBehaviour
{
public ClassA cA;
void Update()
{
if(cA.isCounting )
{
//do something
}
}
}