Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/JacksWorld. An abandoned mini-project that I created while learning to use Unity with networking.
Something went wrong. Try again.
315 B · 14 lines
C#
at master
123456789101112131415using UnityEngine;using System.Collections;
public class QuitOnEscapeOrBack : MonoBehaviour{ private void Update() { // "back" button of phone equals "Escape". quit app if that's pressed if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } }}