hey guys, im after a basic javascript that allows me to return back to the main menu scene when i press Escape in my game, please help
thanks
hey guys, im after a basic javascript that allows me to return back to the main menu scene when i press Escape in my game, please help
thanks
Hi, change code like this
function Update()
{
if( Input.GetButtonDown( KeyCode.Escape) )
{
Application.LoadLevel(0); // it number or name, string
}
}