using UnityEngine;
using UnityEngine.SceneManagement;
namespace Arena.UI
{
///
/// Game over screen. Its Restart button reloads the scene.
///
public class GameOverView : MonoBehaviour
{
#region Public Methods
public void Show()
{
gameObject.SetActive(true);
}
public void Hide()
{
gameObject.SetActive(false);
}
///
/// Called by the Restart button (OnClick in the Inspector).
///
public void Restart()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
#endregion
}
}