I have a c# script, with a static variable inside, that I would like to access, from another c# script but I cant figure out how. I was kind of thinking, if it was just like in Javascript, where you can do it like this.
var targetScript : Script;
function OnGUI () {
if (GUI.button(Rect(100,100,100,100),"Test")){
targetScript.number + 10;
}
}
But how would i do this in c#?