using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
///
/// 工作牌
///
public class WorkPermit : MonoBehaviour
{
///
/// 工作证
///
public GameObject WorkPermitObj;
///
/// 对话框
///
public Image Dialogbox;
///
/// 对话框的text
///
public Text DialogboxText;
///
/// 下一步按钮
///
public Button ContinueBtn;
///
/// 下一句话按钮
///
public Button NextlBtn;
// Start is called before the first frame update
void Start()
{
NextlBtn.gameObject.SetActive(false);
DialogboxText.text = null;
ContinueBtn.onClick.AddListener(() =>
{
Dialogbox.gameObject.SetActive(true);
DialogboxText.text = null;
Destroy(WorkPermitObj);
});
}
// Update is called once per frame
void Update()
{
}
///
/// 背包工牌按钮点击后调这个
///
void WorkPermitvoid ()
{
WorkPermitObj.gameObject.SetActive(true);
Dialogbox.gameObject.SetActive(true);
DialogboxText.text = "我是xx供电公司工作人员,这是我的工作证,现在我们要对贵户进行现场检查。";
}
}