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"); } }