26 lines
479 B
C#
Raw Permalink Normal View History

2025-03-17 14:42:04 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameOverUI : MonoBehaviour
{
public void RestartGame()
{
SceneManager.LoadScene("LVL1");
}
public void GoToMainMenu()
{
SceneManager.LoadScene("MainMenu");
}
public void QuitGame()
{
Debug.Log("Spiel beendet! (Funktioniert nur in einer Build-Version)");
Application.Quit();
}
}