global variables possible in unityiphone 1.5.1 I'm using the scripts example from unity site but I seem to get a "fail" when building in xcode
// The static variable in a script named 'TheScriptName.js'
static var someGlobal = 5;
// You can access it from inside the script like normal variables:
print(someGlobal);
someGlobal = 1;
To access it from another script you need to use the name of the script followed by a dot and the global variable name.
print(TheScriptName.someGlobal);
TheScriptName.someGlobal = 10;
Is this a question or a statement? If it is a question, could you make your question more clear? If it is a statement, then this should not be a question. :)
– BinaryCaveman