var icon1 : Texture2D;
var icon2 : Texture2D;
var icon3 : Texture2D;
var icon4 : Texture2D;
var GUIS : GUIStyle;
function OnGUI () {
if (GUI.Button (Rect (786,10,818,42), icon2, GUIS)) {
print ("MENU");
}
if (GUI.Button (Rect (824,45,856,90), icon1, GUIS)) {
print ("HINT");
}
if (GUI.Button (Rect (16,600,48,632), icon3, GUIS)) {
print ("BCK");
}
if (GUI.Button (Rect (824,600,856,632), icon4, GUIS)) {
print ("FWD");
}
}
Im using this in a script attached to an empty GO… all looks ok, but when i try to press the buttons i can just press the menu once, it displays “MENU”, then hint, it displays “HINT”… but then when i want to press menu button again the text doesnt change back to MENU but it stays HINT… like it can no longer be pressed?