x


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!

more ▼

asked Mar 07 '11 at 07:23 AM

user-3061 (yahoo) gravatar image

user-3061 (yahoo)
126 29 29 37

if you want to change weapons then I suggest you try something else =)

Mar 15 '11 at 12:03 AM networkZombie
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5094
x3694
x3465
x825
x19

asked: Mar 07 '11 at 07:23 AM

Seen: 1105 times

Last Updated: Mar 07 '11 at 07:23 AM