DeviceFuncMatchInfo.cs 845 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. using Newtonsoft.Json;
  4. namespace Rokid.UXR.Module
  5. {
  6. public class DeviceFuncMatchInfos
  7. {
  8. private static List<DeviceFuncMatchInfo> info;
  9. public static List<DeviceFuncMatchInfo> GetInfos()
  10. {
  11. if (info == null)
  12. {
  13. info = Newtonsoft.Json.JsonConvert.DeserializeObject<List<DeviceFuncMatchInfo>>(Resources.Load<TextAsset>("Configs/DeviceFuncMatchInfo").ToString());
  14. }
  15. return info;
  16. }
  17. }
  18. [System.Serializable]
  19. public class DeviceFuncMatchInfo
  20. {
  21. /// 编号
  22. public int Id;
  23. /// 功能名
  24. public string FuncName;
  25. /// 眼镜Model名
  26. public string GlassDeviceModels;
  27. /// 是否需要相机
  28. public int UseCamera;
  29. }
  30. }