Restart game script.

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();
}

Application.LoadLevel(Application.loadedLevelName);

this one works for me, hope it helps

in your case would be your main page -> currentPage