28 lines
514 B
C#
28 lines
514 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class GameOverManager : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public void OnPressPlayAgain()
|
|
{
|
|
SceneManager.LoadScene("GameScene");
|
|
}
|
|
|
|
public void OnPressMainMenu()
|
|
{
|
|
SceneManager.LoadScene("MainMenuScene");
|
|
}
|
|
}
|