Calling script components.

I am trying to call a C# script attached to a gameobject from a javascript script attached to a different gameobject but it does work and gives a unknown identifier. However, If I do a js to js call it works. We can only do script calls from same type of script files only?

There is a reason, having to do with the compilation order.

See this topic for more info.