Is that possible a C # access a variable in another C # without using “GetComponent”? Making the same way as is possible in JavaScript, which simply just put the script name + variable name (static).
My problem is, I have a scene with a C# that should update a variable in another C# on a GameObject in another scene.
I looked for a way to direct access from C # but not found. Thank tips.
ScriptName.member
works also in C# but it is static. UnityScript has the exact same functioning, you were just using static variables.
For instance members, use GetComponent
Make sure you know what static is before using it.