17 lines
296 B
C#
17 lines
296 B
C#
using UnityEngine;
|
|
|
|
namespace eToile_example
|
|
{
|
|
public class ExitApp : MonoBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Escape))
|
|
{
|
|
Application.Quit();
|
|
print("Quit app");
|
|
}
|
|
}
|
|
}
|
|
}
|