Unity3D Tutorial Restart Level
Easter video series !
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL Restart Level
1. Create New java and name it : RestartLevel
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
function OnGUI () {
if ( GUI.Button( Rect( 1, Screen.height-25, 75, 25 ), "Restart" )) {
Application.LoadLevel(Application.loadedLevel);
}
}
---------------------------------------------------------------------------------
0 comments:
Post a Comment