using System.Collections; using System.Collections.Generic; using UnityEngine; public class QuitGame : MonoBehaviour { // This method quits the game public void Quit() { // Logs a message for debugging (useful for testing in the editor) Debug.Log("Game is quitting..."); // Exits the application Application.Quit(); } }