hey i dont know how to access public variables written in JS.
lets say i have a JS script that is this :
var varToAccess : float = 1.0;
function Start () {}
function Update () {}
i want to be able to access the varToAccess variable in C#. i thought this would work but it doesnt.
public float JSVar;
void Start () {
JSVar = GetComponent().varToAccess;
Debug.Log(JSVar);
}
void Update () {}
how do u access public vars written in another language?