hi i need the script for restart the game i used this script
function PauseMenu() {
BeginPage(200,200);
if (GUILayout.Button (IsBeginning() ? "Play" : "Continue")) {
UnPauseGame();
}
if (GUILayout.Button ("Options")) {
currentPage = Page.Options;
}
if (GUILayout.Button ("Credits")) {
currentPage = Page.Credits;
}
**if (!IsBrowser() && !IsBeginning() && GUILayout.Button ("Restart")) {
currentPage = Page.Main;
}**
EndPage();
}