- Home /
Android : Home button
Hi every body. I have a big problem with home button on my android phone :(( I have a game,and when i pressed home button to quit game , my phone freezed :(( this is my code:
if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer) {
if (Input.GetKey (KeyCode.Home) || Input.GetKey (KeyCode.Escape) || Input.GetKey (KeyCode.Menu)) {
Application.Quit ();
}
}
It worked with Escape & Menu button. Please help me :((
Comment
Your answer
Follow this Question
Related Questions
Scene View Problems 0 Answers
Unity Crash Problem 3 Answers
Camera freezes when in bone hierarchy 1 Answer
particle system 0 Answers
Placing objects on a grid 2 Answers