12345678910111213141516171819202122232425262728293031 |
- using System.Collections.Generic;
- using UnityEngine;
- using Newtonsoft.Json;
- namespace Rokid.UXR.Module
- {
- public class DeviceFuncMatchInfos
- {
- private static List<DeviceFuncMatchInfo> info;
- public static List<DeviceFuncMatchInfo> GetInfos()
- {
- if (info == null)
- {
- info = Newtonsoft.Json.JsonConvert.DeserializeObject<List<DeviceFuncMatchInfo>>(Resources.Load<TextAsset>("Configs/DeviceFuncMatchInfo").ToString());
- }
- return info;
- }
- }
- [System.Serializable]
- public class DeviceFuncMatchInfo
- {
- /// 编号
- public int Id;
- /// 功能名
- public string FuncName;
- /// 眼镜Model名
- public string GlassDeviceModels;
- /// 是否需要相机
- public int UseCamera;
- }
- }
|