Skip to content

Instantly share code, notes, and snippets.

@anchan828
Created August 21, 2012 12:03
Show Gist options
  • Save anchan828/3414930 to your computer and use it in GitHub Desktop.
Save anchan828/3414930 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour
{
public GUIStyle Btn;
void OnGUI ()
{
if (GUI.Button (new Rect (Screen.width - 124, Screen.height - 64, 120, 60), "", Btn)) {
Application.LoadLevel ("Hoge");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment