You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
497 B
26 lines
497 B
2 years ago
|
using UnityEngine.UI;
|
||
|
using UnityEngine.SceneManagement;
|
||
|
using System.Collections;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class GameOverScreen : MonoBehaviour
|
||
|
{
|
||
|
public Text levelReached;
|
||
|
|
||
|
public void Setup(int score)
|
||
|
{
|
||
|
gameObject.SetActive(true);
|
||
|
levelReached.text = score.ToString() + " LEVEL";
|
||
|
}
|
||
|
|
||
|
public void RespawnButton() {
|
||
|
SceneManager.LoadScene("Main_Game");
|
||
|
}
|
||
|
|
||
|
public void SaveQuitButton()
|
||
|
{
|
||
|
SceneManager.LoadScene("Main_Menu");
|
||
|
}
|
||
|
|
||
|
}
|