FiE-Game/Assets/Photon Unity Networking/UtilityScripts/QuitOnEscapeOrBack.cs
2023-07-19 18:11:02 +01:00

14 lines
315 B
C#

using 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();
}
}
}