I have a game on Unity3d and I write scripts using JS (UnityScript) and C#. In the JS script I have a variable, which I need to access in the C# script.
Is it possible to do something like this?
Script.js:
public var myVarible;
Script.cs:
class A {
void B() {
Script script; // Compiler can't see Script
script = GameObject.Find ("MyScripts").GetComponent<Script> ();
script.myVariable = false;
}
}