hey, I’m trying to find out how to make script that performs this drop down menu, does anyone know how to make this menu?
[15963-screen+shot+2013-09-30+at+1.23.09+pm.png|15963]
I need it for this script which will allow the user(developer) to select what lights and how many (why I need that drop down) to turn off which then plays a SFX to simulate say a power outage or something. heres the script.
var sound: AudioClip;
var action: boolean;
var done: boolean;
function Start(){
action = false;
}
function OnTriggerEnter( other : Collider ) {
if(other.tag == ("Player")){
action = true;
}
}
function Update(){
if(!done){
if(action){
light.enabled = !light.enabled;
audio.PlayOneShot(sound);
done=true;
}
}
}
@script RequireComponent(AudioSource)