Skip to content

Instantly share code, notes, and snippets.

@kazuooooo
Created December 28, 2014 05:54
Show Gist options
  • Save kazuooooo/7f56ca2976b374fc4c23 to your computer and use it in GitHub Desktop.
Save kazuooooo/7f56ca2976b374fc4c23 to your computer and use it in GitHub Desktop.
#pragma strict
//make GUI
function OnGUI(){
//make button
if(GUI.Button(Rect(Screen.width/2-100,200,200,30),"GAME START"))
{
//change sscene
Application.LoadLevel("main");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment