How do I change a variable in one script from a second script?
I have a script named ScriptOne attached to one object, and it has the following variable
var work : boolean = false
To change that variable from a script named ScriptTwo attached to another object, I thought I would just need to type into ScriptOne
GetComponent (ScriptOne.work) = true;
This doesn't seem to work, so what is the actual format?