19 lines
374 B
C#
19 lines
374 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class RestartUI : MonoBehaviour
|
|
{
|
|
[SerializeField] GameObject RestartRoot;
|
|
[SerializeField] Button RestartButton;
|
|
|
|
private void Start()
|
|
{
|
|
RestartButton.onClick.AddListener(()=>GameManager.Instance.GameRestart());
|
|
}
|
|
|
|
public void ShowRestart()
|
|
{
|
|
RestartRoot.SetActive(true);
|
|
}
|
|
}
|