- Home /
Question by
byurocks23 · Mar 20, 2014 at 08:33 PM ·
javascriptscenestaticresetpublic
How to access variables from other scripts without static (javascript)
When i created my game, I created all of my universally accessible variables as static. I know need to be able to reset a scene, and the statics aren't resetting. With changing as little code as possible, how do I go about doing this.
Comment
Hello bud, I just answered this somebody else. have a look at the link in my answer, it will help with more than just this issue. take care and thanks for reading GruffyAnswered a $$anonymous$$ute ago, same subject really
Best Answer
Answer by Bash Mills · Mar 20, 2014 at 09:39 PM
Give every class a static Reset() method which resets them? It means you won't have to change any code but you'll have to add a little.
I can't seem to find any example code or documentation on this. Can you give me some?