using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 直接接入式电能计量装置_铭牌 /// public class Device_NamePlate : Device_Base { /// /// 是否检查 /// public bool isChecked; /// /// 核对和抄录UI /// private GameObject checkUiPrefb; private ProcessTipPanel processTipPanel; private void OnMouseDown() { if (!isChecked) { //核对和记录 if (checkUiPrefb == null) { checkUiPrefb = Resources.Load("UI/UI_Tip/ProcessTipPanel"); } if (processTipPanel == null) { GameObject tip = Instantiate(checkUiPrefb, UIManager.Instance.canvas.transform); processTipPanel = tip.GetComponent(); } //开始走进度 processTipPanel.StartProcess(result => { if(result) { Debug.Log("核查完成"); isChecked = true; } }); } } }