void OnGUI()
{
int sw = Screen.width;
int sh = Screen.height;
GUILayout.BeginArea(new Rect(0,sh/2,sw,sh));
GUILayout.BeginHorizontal();
if (GUI.Button( new Rect(sw/4,0,sw/2,sh/4), start_im)) {
Application.LoadLevel("Stage1");
Instantiate(GameObjectPrefab,new Vector3(0,0,0), Quaternion.identity);
}
if (GUI.Button( new Rect(sw/8*1,sh/4,sw/4,sh/6), tutorial_im)) {
Application.LoadLevel("Tutorial");
}
if (GUI.Button( new Rect(sw/8*3,sh/4,sw/4,sh/6), score_im)) {
Application.LoadLevel("Record");
}
if (GUI.Button( new Rect(sw/8*5,sh/4,sw/4,sh/6), option_im)) {
Application.LoadLevel("Option");
}
GUILayout.EndHorizontal();
GUILayout.EndArea();
}