this is meant to be another example of my menu system.
this is a simple implementation, if you click on button first, then second opens.
if you click on second then third opens…
but it does nothing.
what’s wrong??
thanks
G.
var L1 = 0;
var L2 = 100;
var L3 = 200;
function OnGUI() {
if (GUI.Button (Rect (25+L1,20+45,120,20), "first")) {
if(GUI.Button (Rect (25+L2,20+55,120,20), "second")) {
GUI.Button (Rect (25+L3,20+65,120,20), "third");
}
}
}