using System.Collections; using System.Collections.Generic; using Assets.Scripts.CharacterScripts; using UnityEngine; using UnityEngine.SceneManagement; public class GameOverController : MonoBehaviour { public AudioSource gameOverMusic; // Game over sound effect void Start(){ gameOverMusic.Play(); // Play the game over effect } public void MainMenu(){ // Load the title screen SceneManager.LoadScene("TitleScreen"); } public void Exit(){ // Exit the game Application.Quit(); } }