using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using MotionFramework;
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);
ContinueBtn.gameObject.SetActive(true);
DialogboxText.text = null;
ContinueBtn.onClick.AddListener(() =>
{
Dialogbox.gameObject.SetActive(false);
DialogboxText.text = null;
Destroy(WorkPermitObj);
MotionEngine.GetModule().HandleClick("Man_stand");
});
WorkPermitvoid();
}
void Update()
{
}
///
/// 背包工牌按钮点击后调这个
///
void WorkPermitvoid ()
{
WorkPermitObj.gameObject.SetActive(true);
Dialogbox.gameObject.SetActive(true);
DialogboxText.text = "我是xx供电公司工作人员,这是我的工作证,现在我们要对贵户进行现场检查。";
}
}