第一次提交
This commit is contained in:
21
Assets/Scripts/UI/UIMessageBox.cs
Normal file
21
Assets/Scripts/UI/UIMessageBox.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user