Skip to content

Instantly share code, notes, and snippets.

@afandiyusuf
Created December 14, 2017 08:24
Show Gist options
  • Save afandiyusuf/b396241714df5cbcdaf3098a31260dc5 to your computer and use it in GitHub Desktop.
Save afandiyusuf/b396241714df5cbcdaf3098a31260dc5 to your computer and use it in GitHub Desktop.
Quit On Back Button Unity3d
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuitOnBack : MonoBehaviour {
// Update is called once per frame
void Update () {
if (Input.GetKeyDown(KeyCode.Escape))
Application.Quit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment