2025-02-27 19:11:37 +01:00

17 lines
345 B
C#

using UnityEngine;
namespace IdyllicFantasyNature
{
public class ExitGame : MonoBehaviour
{
void Update()
{
// If you press the ESC key in the game, the application will be closed
if (Input.GetKey(KeyCode.Escape))
{
Application.Quit();
}
}
}
}