Files
HX_MapEditor/Assets/Scripts/UI/UIMessageBox.cs
2025-06-14 13:46:24 +08:00

22 lines
376 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIMessageBox : MonoBehaviour
{
public Text title;
public Text message;
public Button btnOk;
private void Start()
{
btnOk.onClick.AddListener(Close);
}
private void Close()
{
gameObject.SetActive(false);
}
}