Blob shadow projector
Load Level GUI
Here how to add a little flare to you game with a RESTART button in the bottom corner:
The script just below creates a RESTART button in the lower left corner of your game. All you
need to do is change the name of the level in the script so it matches
your scene name and then drop it onto your Camera. Easy as that!
Load Level Script:
function OnGUI () {
if ( GUI.Button( Rect( 1, Screen.height-35, 85, 35 ), "Restart" ))
{
//Loads a level
Application.LoadLevel( "Final02" );
}
}
More to come!
if ( GUI.Button( Rect( 1, Screen.height-35, 85, 35 ), "Restart" ))
{
//Loads a level
Application.LoadLevel( "Final02" );
}
}
More to come!
No comments:
Post a Comment