- Home /
This question was
closed Nov 04, 2014 at 10:40 PM by
robertbu for the following reason:
Duplicate Question
Question by
lavapig · Nov 04, 2014 at 10:40 PM ·
javascriptscriptingbasicseasyglobalvariables
How To Declear A Global Varible?
This question must seem really dumb, but I'm pretty new to unity so any help I can get would be greatly appreciated :)
How do you declare a global variable in JS? I have the following variable :
public var walking = false;
but it only wants to work in one of my script files, and nowhere else. How do I make my variable walking Global?
Comment
Sounds cool. Again I don't really know what I'm doing haha, but I take a look over there.
Thanks :)