72 lines
1.2 KiB
C#
72 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ModelItem : MonoBehaviour
|
|
{
|
|
//类型
|
|
public ModelType modelType;
|
|
//设备类型
|
|
public DeviceType deviceType;
|
|
//异常类型
|
|
public ExceptionType expType;
|
|
//ID
|
|
public string code;
|
|
//当前楼层索引
|
|
public int floorIndex;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
public enum ModelType
|
|
{
|
|
Device,//设备
|
|
Worker,//人员
|
|
SpacePoint,//空间点
|
|
ExpEvent,//异常事件
|
|
Model,//模型
|
|
Client,//客户
|
|
counter//柜台
|
|
}
|
|
|
|
public enum DeviceType
|
|
{
|
|
NONE,//不为设备
|
|
YuShouLiZhongDuan,//预受理终端
|
|
JiaoFeiJi,//缴费机
|
|
YeWuJi,//业务机
|
|
FaPiaoDaYinJi,//发票打印机
|
|
GongPai,//工牌
|
|
WangShangGuoWangYunZhongDuan,//网上国网云终端
|
|
SheXiangTou//摄像头
|
|
}
|
|
|
|
/// <summary>
|
|
/// 异常类型
|
|
/// </summary>
|
|
public enum ExceptionType
|
|
{
|
|
NONE,//无异常
|
|
LeavePost,//人员离岗
|
|
PeopleGather,//人员聚集
|
|
Antislip,//防滑设施未摆放
|
|
Temperature,//体温异常
|
|
GongDanLinQi,//工单临期
|
|
GongDanYuQi,//工单逾期
|
|
DeviceExp//设备异常
|
|
}
|