- 最后登录
- 2018-6-29
- 注册时间
- 2011-7-1
- 阅读权限
- 20
- 积分
- 359

- 纳金币
- 335582
- 精华
- 0
|
@script ExecuteInEditMode()
var gSkin:GUISkin;
var backdrop:Texture2D;
private var isLoading=false;
function OnGUI () {
if(gSkin)
GUI.skin=gSkin;
else
Debug.Log("StartMenuGUI:GUI Skin object missing!") ;
var backgroundStyle:GUIStyle=new GUIStyle();
backgroundStyle.normal.background=backdrop;
GUI.Label(Rect((Screen.width-(Screen.height*2))*0.75,0,Screen.height*2,Screen.height),"",
backgroundStyle);
GUI.Label(Rect((Screen.width/2)-197,50,400,100),"Lerpz Escapes","mainMenuTitle");
if(GUI.Button(Rect((Screen.width/2)-70,Screen.height-160,140,70)," lay"))
{
isLoading=***e;
Application.LoadLevel("TheGame");
var isWebPlayer=(Application.platform==RuntimePlatform.OSXWebPlayer||Application.platform==RuntimePlatform.WindowsWebPlayer);
if(!isWebPlayer)
{
if(GUI.Button(Rect((Screen.width/2)-70,Screen.height-80,140,70),"Quit"))
Application.Quit();
}
if(isLoading)
GUI.Label(Rect((Screen.width/2)-110,(Screen.height/2)-60,400,70),"Loading...",
"mainMenuTitle");
}
} |
|