- Home /
Duplicate Question
Any easier way to code this? (Javascript)
So im making a jobs list for my game. And beside every "join job" button, there is a button that you can press, and a thing of text will pop up, explaining the job. So I have to make it so, if one text is active, and then you press another button, all texts are un active exept for the one you pressed. I know that the hard way to make this is have a bunch of functions saying blahblah.SetActive(true or false); over and over and over again but im somewhat lazy and would like to know if theres an easier way
http://unity3d.com/learn/tutorials/modules/beginner/scripting
http://unity3d.com/learn/tutorials/modules/beginner/scripting/loops
If you have a specific question about your code, please repost with that info (but do search first).
Follow this Question
Related Questions
Change Transparency of a Cut-out Material 2 Answers
Player model doesn't stay on ground 1 Answer
sony xperia play help 0 Answers
How come my car-objects hood doesn't cast any shadows? 1 Answer