mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
nya
This commit is contained in:
1 parent
61a7f5984b
commit
b760b5d65c
15 files changed
+2390
-44
No files matched your search
@@ -0,0 +1,34 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user