Accessing a js static var from a c# script

I have a static variable inside a JavaScript script. How can I access it from inside a C# script?

UnityScript files get compiled to classes underneath just like C# files. You can access a static field the same way as C# class. For unity script the class name is the file name so it should be `.`. Classes from unity script files never have a package. One thing to consider is the compile order because you can't breach the language boundary within a given compile phase. That's what SendMessage is for.

Edit: Here is an example of how this works. ACSharpScript.cs goes in some folder I define to ensure it's compiled last:

public class ACSharpScript : MonoBehaviour {
    void Update () {
        AUnityScript.COUNTER++;
    }
} 

...then, in Standard Assets I create a UnityScript file called AUnityScript.js :

public static var COUNTER:int = 0;
function Update () {
    print(COUNTER);
}

the C# is incrementing the static COUNTER field in the UnityScript class and an instance of the UnityScript (the instance created when you hang it on the graph) is reading the static field every frame. Hang these on the scene and try it... you will see COUNTER incrementing every frame.