Files
ScienceLab.GravityForce/Assets/Materials/Nature/Scripts/ExitGame.cs
2026-03-17 13:40:09 +02: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();
}
}
}
}