- Home /
Question by
user-3061 (yahoo) · Mar 07, 2011 at 07:23 AM ·
javascriptguivariablestatic-vars
Changing variables in GUI?
Hi, Let's say I have a static variable holding a prefab named "bullets".How do I use my GUI as a button to change to variable to another variable? Eg : When i click the button, the variable changes from "bullets" to "rockets". I just need some pointers to do this correctly, please help in javascript, thanks!
Comment
if you want to change weapons then I suggest you try something else =)
Your answer
Follow this Question
Related Questions
Setting Scroll View Width GUILayout 1 Answer
Access variable from multiple scripts 2 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Get variables from other scripts 6 Answers
Any problems with this script? 1 Answer