| 12345678910111213141516171819202122232425262728293031 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using Newtonsoft.Json;
- public class DeviceMgr
- {
- static DeviceMgr _ins = null;
- public static DeviceMgr ins {
- get {
- if (_ins == null) {
- _ins = new DeviceMgr();
- }
- return _ins;
- }
- }
- }
- public class DeviceInfo
- {
- public int id = 0;
- public bool inuse = false;
- [JsonIgnore]
- public DeviceConfig config = null;
- }
- public class DeviceConfig
- {
- public int id = 0;
- public string name = "";
- public string detail = "";
- public int difficulty = 0;
- }
|