um ineed help with main minue

hi… yes this that dumb n00b agian ninjafrog00 with another ??? ok i have been working on a few games and yes am stuck in most but from now on i desided to make a few simple games and in order to do so i need to know how to make two fackters i’m going to make a wall that says start game and below that end game and i need scrypts for it to.
thanksto any that help

um yeah still need help oh and if you open this post up and see random messages like hi or cow or somthing it’s just so i don’t lose my post

hi

There is an ‘edit’ button, I suggest you use it rather than double-post constantly (which is rude, and doubly so if you’re using it to bump every few minutes).

Look up the GUI functions → here

The bare base bonesdedest implementation is this -

enum Menu { None, Main }
var menu : Menu = Menu.Main;

function Update() {
  switch( menu ) {
    case Menu.Main:
      if ( GUILayout.Button( "New Game" ) {
        // new game
      }
      if ( GUILayout.Button( "End Game" ) {
      }
  }
}

If you don’t want to use the nice GUI functions, you’ll want to use Physics.Raycast and Input.mousePosition to see where the user is pointing the mouse, and if it’s on one of your ““walls”” to perform the appropriate action.

Spelling grammar blah.