mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
35 lines
740 B
C#
35 lines
740 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class GameOver : MonoBehaviour
|
|
{
|
|
public GameObject deathMenu;
|
|
|
|
// Update is called once per frame
|
|
public void Death()
|
|
{
|
|
deathMenu.SetActive(true);
|
|
Time.timeScale = 0f;
|
|
}
|
|
|
|
public void ResumeGame()
|
|
{
|
|
Time.timeScale = 1f;
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
|
}
|
|
|
|
public void ReturnToMain()
|
|
{
|
|
Time.timeScale = 1f;
|
|
SceneManager.LoadScene("Main Menu");
|
|
}
|
|
|
|
public void ReturnToReal()
|
|
{
|
|
Time.timeScale = 1f;
|
|
SceneManager.LoadScene("Real World");
|
|
}
|
|
}
|