Howto access global var from other script?

So i followed these instructions here

TheScriptName.someGlobal = 10;
http://docs.unity3d.com/Documentation/ScriptReference/index.Member_Variables_26_Global_Variables.html

However, it yields an error when i follow it.

Do i have to call the GameObject first?

The variabel i try to access is

public static int Score = 0; // a script called PlayerStats assigned to “Player”

Now i want to do this from another script:

// Score!

Player.Score++;

If the script is called PlayerStats then you need to write:

   PlayerStats.Score++;

public Class SampleClass1 : MonoBehaviour
public static int Example = 1;

void Update () {
if(Input.GetMouseDown(0)) {Example = 0}

}
//In the class SampleClass2,
int Example2;
void Update () {Example2 = SampleClass1.Example}();
{if(Example2 = 0) {Debug.log(“This was an example of global vars in C#”)}
}