YanCheng_Metrology/Assets/Scripts/CXX/Devices/计量柜/Device_Socket.cs

36 lines
784 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 插座
/// </summary>
public class Device_Socket : Device_Base
{
/// <summary>
/// 验电位置
/// </summary>
public Transform testPosAndRot;
/// <summary>
/// 是否带电
/// </summary>
public bool hasElectricity;
/// <summary>
/// 断线重连保存
/// </summary>
/// <param name="triggerInfo"></param>
/// <exception cref="System.NotImplementedException"></exception>
public override void LoadCurrentTriggerStat(string triggerInfo)
{
if (triggerInfo != "")
hasElectricity = bool.Parse(triggerInfo);
}
public override string SaveCurrentTriggerStat()
{
return hasElectricity.ToString();
}
}