Hi guys!
I’m in need of some help on this one. Basically, I have a C# script that has some default variables in it (ex: a variable balltype = “YES”)
Now, using JavaScripting, I wish to access that variable for use in my program.
I was thinking of something like this:
function Start() {
scriptStorage = gameObject.GetComponent(ThisIsMyCSharpScript);
Debug.Log("scriptStorage value: " + scriptStorage.variable);
}
Is this possible? If so, how?
Thanks in advance! ![]()