44 lines
949 B
C#
44 lines
949 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 直接接入式电能计量装置_铭牌
|
|
/// </summary>
|
|
public class Device_NamePlate : Device_Base
|
|
{
|
|
/// <summary>
|
|
/// 是否检查
|
|
/// </summary>
|
|
public bool isCheck;
|
|
|
|
/// <summary>
|
|
/// 核对和抄录UI
|
|
/// </summary>
|
|
public GameObject checkUiPrefb;
|
|
public ProcessTipPanel processTipPanel;
|
|
|
|
|
|
/// <summary>
|
|
/// 核对和记录
|
|
/// </summary>
|
|
public void Check()
|
|
{
|
|
if(checkUiPrefb==null)
|
|
{
|
|
checkUiPrefb = Resources.Load<GameObject>("UI/UI_Tip/ProcessTipPanel");
|
|
}
|
|
|
|
if(processTipPanel==null)
|
|
{
|
|
GameObject tip = Instantiate<GameObject>(checkUiPrefb, UIManager.Instance.canvas.transform);
|
|
processTipPanel = tip.GetComponent<ProcessTipPanel>();
|
|
}
|
|
}
|
|
|
|
private void OnMouseDown()
|
|
{
|
|
processTipPanel.SetProcess(true);
|
|
}
|
|
}
|