End level Gui pop-up

So im busy creating a game in java and what im trying to impliment is when my player reaches the end of the level I want there to be a pop-up that says something like congratulations and underneath a button that i want to say continue.
Now the only real part im stuggling with is trying to figure out how to impliment this.
Any help would be greatly appreciated
Thanks in advance

Just use a GUIText or TextMesh component to make your text pop-up and GUI.Button to create the button that will let the player continue. You can probably find some inspiration by watching this tutorial video:

(or any other tutorial on Unity3D UI using UnityScript/JavaScript).

Something like this should get you going. Just set the boolean levelComplete to true when you’ve completed the level.

var levelComplete : boolean;

function OnGUI(){
if(levelComplete){
GUI.Label(Rect(Screen.width / 2 - 50, Screen.width / 2 - 50, 100, 50),"Congratulations!");
if(GUI.Button(Rect(Screen.width / 2 - 50, Screen.width / 2 - 25, 100, 50),"Continue")){
Application.LoadLevel("Level2");
}
}