using UnityEngine;
using System.Collections;
public class End : MonoBehaviour {
public GUISkin mySkin;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI(){
GUI.skin=mySkin;
GUI.Label(new Rect(Screen.width/2-70,Screen.height/2-80,140,80),"恭喜过关!");
if(GUI.Button(new Rect(Screen.width/2-70,Screen.height/2-40,140,80),"重新开始游戏")){
Application.LoadLevel("main");
}
}
}