Can you tell me how to access a script variable from another script? I even read everything on Unity website, but I still can't do it. I know how to access another object, but not another variable.
This is the situation: Im in script B , and I want to access the variable X from script A. The variable X is equal to boolean . Can you help me?
Btw I need to update the value of X s in script B , how to do it? Accessing it in the Update function. If you could give me an example with these letters, that would be great!
thanks
source share