Quantcast
Channel: Answers for "Global variables questions"
Viewing all articles
Browse latest Browse all 10

Answer by Eric5h5

$
0
0
Don't use static unless you only want one instance of the variable. Making a variable public makes it global, static has nothing to do with it (private variables can be static). http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Objects.html

Viewing all articles
Browse latest Browse all 10

Trending Articles