How to make clickable button that runs the game

I need the game to start running when player click Play button. I managed how to remove the button itself with

Blockquote
void Update () {

	if (Input.GetMouseButton (0))
					Destroy (this.gameObject);

}

But i don’t know how to do so, that this triggers the start of the game ( like you clicked play in editor ) , and also how to make sure that this will work only when players click button itself.

Well for that you probably want to make a new scene called MainMenu or something, then go to File → Build Settings → Add current. And then within your main menu scene add a script to the main camera called menu or something, then add a GUI button called Play, and within that add Application.LoadLevel("MainMenu");

And that’s it :slight_smile: