Sunday, 14 December 2014

App Policies: 10.4 Back Button (WP)


For Example:

void Update () {
if (Input.GetKeyDown (KeyCode.Escape)) {
Application.LoadLevel("MainMenu");
}
}



OR

void Update () {
if (Input.GetKeyDown (KeyCode.Escape)) {
Application.Quit ();
}

}

0 comments :

Post a Comment