hi
How do I check if bool is true from another script?
///
testscript.cs
public bool testrue= false;
void Update ()
{ if(,…)
{
testrue= true;
}
}
///
*.cs
if (GameObject.GetComponent().testrue== true) {
Debug.Log(“test script”);
}
And this dont work wtf
dont work i think this dont work on unity 5 i tested it looks like it only work on unity 4