Hi, I have this JS, it is working, I need to set about 50 different pictures for 50 different buttons, I mean each button will show a different picture in the GUITexture. Is there a way to make only one JS to show the correct picture from the correct button touched? Instead of make 50 different scripts? Any help is welcome :)
P.S. I am having problem to set the GUITexture to fit the full width with 50pixels height in the bottom of the iOS devices only Landscape mode.
var InfoPanel : GUITexture;
function Start(){
InfoPanel.enabled = false;
}
function OnTouchDown(){
InfoPanel.enabled = true;
}
function OnTouchUp(){
InfoPanel.enabled = false;
}
function OnTouchStay(){
InfoPanel.enabled = true;
}
function OnTouchExit(){
InfoPanel.enabled = false;
}
↧