Am just doing that. I have a bool: [HideInInspector] public bool exampleBool = true;
Originally It was only true if it was marked in the inspector, but I changed it to this so it would always be true. Anyway, am calling it from its own script several times just to debug and is always true, as it should. But am also calling it from the other script and is always false. In fact, am not even changing its value.
I know that the problem is that the second script overwrites the true value to false becase I created this:
public void testValue()
{
print("exampleBool: " + exampleBool);
}
Now, this is the thing: am calling this void from both its own script and another one, both in Update(); The result from its own is true (as it should), but the other is false.
So this is why am assuming that calling the variable from other script overwrites it, but I don´t know why.