Accessing java script from a c# script?

I did the blendercookie tutorial on networking and added a couple of things. But I prefer c#. Now I have one JS-script from the tutorial and try to access the static var playerName:String; with the following code in a C#-script, but it don’t work :frowning:

void Awake(){
		theNetworkObject = GameObject.Find("NetworkManager");
		thePlayerName = theNetworkObject.GetComponent<NetworkManagerScript>().playerName;
	}

I get this error message:

I know it works the other way round, C# → JS, but I can’t get it work from JS->C#.
The “Getters and Setters”-method I ve tried to, but this always results in crashing unity.

Does some one has a hint for me?

–Eric

Thank you Eric5h5,
as it seems, I have to use sendmessage.