I am 99% sure that they are correctly set up in the script. I feel really stupid that I can’t figure this out as I am an experienced Unity user. Anyways, I want to have 2 more buttons appear after you press the button labeled economy. And yes I know I need a function GUI (){ and I do but it did not copy and paste in to the script
var treeEco : boolean = false;
GUI.skin = timerSkin; var revisedMinutes : int = Mathf.Round(minutes); if(minutes < 10){GUI.Box(Rect(10, 10, 100, 50), hours + ":0" + revisedMinutes + " " + halfDay);} if(minutes >= 10){GUI.Box(Rect(10, 10, 100, 50), hours + ":" + revisedMinutes + " " + halfDay);} GUI.Box(Rect(10, 60, 100, 50), "Day:" + day); GUI.skin = null;
GUI.skin = menubarSkin; GUI.Box(Rect(Screen.width - 300, 2, 300, Screen.height), "Information Bar");
if(GUI.Button(Rect(Screen.width - 295, 200, 290, 50), "Economics")){ treeEco = true;}
if(treeEco){
if(GUI.Button(Rect(Screen.width - 250, 255, 250, 50), "Commodities")){ var showCommodities : boolean; showCommodities = true;}
if(GUI.Button(Rect(Screen.width - 250, 310, 250, 50), "Shipping")){ var showShipping : boolean; showShipping = true;}
}
}
THANKS IN ADVANCE FOR ANY HELP!