I have a js variable to pass in c # how can I do?
Use google or use the forum search. This question has been asked and answered hundreds of times already…
No offense, that’s just the way it is.
var myVar : int; //JS
int myVar; // C#
var myVar : float //JS
float myVar; //C#
I think you will get the point
http://unity3d.com/learn/tutorials/modules/beginner/scripting/c-sharp-vs-javascript-syntax