diff --git a/MrBigsock/Assets/Code/UI/EndScreen.cs b/MrBigsock/Assets/Code/UI/EndScreen.cs index c44abb087d7e15bb4567a9bf487346611434076e..673314ad06ab26e695c7d520510a604cb1689f30 100644 --- a/MrBigsock/Assets/Code/UI/EndScreen.cs +++ b/MrBigsock/Assets/Code/UI/EndScreen.cs @@ -3,31 +3,35 @@ using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; -public class EndScreen : MonoBehaviour -{ - - public void Start() - { - Time.timeScale = 0; - GameObject menu = GameObject.Find("PlayerMenu(Clone)"); - if (menu != null) { - Destroy(menu.gameObject); +namespace BigSock.UI +{ + public class EndScreen : MonoBehaviour + { + + public void Start() + { + Time.timeScale = 0; + GameObject menu = GameObject.Find("PlayerMenu(Clone)"); + if (menu != null) + { + Destroy(menu.gameObject); + } } - } - public void OnDestroy() - { - Time.timeScale = 1; - } + public void OnDestroy() + { + Time.timeScale = 1; + } - public void GiveUp() - { - Application.Quit(); - } + public void GiveUp() + { + Application.Quit(); + } - public void TryAgain() - { - Destroy(gameObject); - SceneManager.LoadScene("MainMenu"); + public void TryAgain() + { + Destroy(gameObject); + SceneManager.LoadScene("MainMenu"); + } } }