Close GUI help.

I want to close the GUI button that I am clicking. Basically a main menu. I've read through the scripting but not quite understanding the logic.

I want to have two buttons: START GAME and END GAME When you click START GAME, both buttons should disapear and another set of buttons will appear.

 When you click END GAME, the application will end.</p>

I can make something appear, but not disappear...



just you can control with boolean variables...

private bool isButton = true;

void OnGUI()
      if(GUI.Button(new Rect(20,20,100,30),"Start Game"))
         //doSomething Here();
         isButton = false;

Here,if you click start game button the button will disappear...try this..