Glenstorm Posted August 17, 2011 Share Posted August 17, 2011 If I attach the same script to two different objects, will they share the same variables between them? if "a" declared in the script is set to 1 from one reference, will it be 1 when read from the other? Link to comment Share on other sites More sharing options...
tunaisafish Posted August 17, 2011 Share Posted August 17, 2011 No each ref gets its own instance of the script, with all variables set to 0. Link to comment Share on other sites More sharing options...
Recommended Posts