Hi, as simple as that. I have a JS and i want to pull in a variable from a C# script.
This is how I pull it in from other C# scripts and that seems to work fine.
the target game object is called Speed
the target script is called SpeedEngine
the target variable is called tSpeed.
GameObject Ospeed = GameObject.Find("Speed");
SpeedEngine speedEngine = Ospeed.GetComponent<SpeedEngine>();
inSpeed = speedEngine.tSpeed;
I’m not a JS guy and i’m not sure if its even possible to pull variables between different languages…
Any ideas?
Thanks!