bool showLabel=true;
OnGUI ()
{
if(showLabel)
GUI.Label (Rect (0,0,100,50), "Text");
if (GUI.Button (Rect (20,70,80,20), "Level 2"))
{
showLabel=!showLabel
}
}
bool showLabel=true; OnGUI () { if(showLabel) GUI.Label (Rect (0,0,100,50), "Text"); if (GUI.Button (Rect (20,70,80,20), "Level 2")) { showLabel=!showLabel } }