33 lines
690 B
C#
33 lines
690 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class GameOverScript : MonoBehaviour
|
|
{
|
|
public GameObject PanelGame;
|
|
public GameObject PopUpPanel;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
// Initialization code can go here if needed
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
// Any per-frame updates can go here if needed
|
|
}
|
|
|
|
public void MainLagi()
|
|
{
|
|
PopUpPanel.SetActive(false);
|
|
Time.timeScale = 1;
|
|
}
|
|
|
|
public void Menu(string sceneName)
|
|
{
|
|
SceneManager.LoadScene(sceneName);
|
|
}
|
|
}
|