using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using static LangChaoJiekou; public class XunJianDataManager : MonoSingleton { public void checkXunjian( Action callBack) { LangChaoJiekou.Instance.GetMachineList((List listMachine )=> { Debug.Log(""); if (listMachine.Count > 0) { LangChaoJiekou.Instance.checkXunjian(listMachine[0], (taskItem) => { if (taskItem == null) { callBack("当前机房暂无巡检任务!"); } else { callBack(null); XunJianAllData.taskItem = taskItem; LangChaoJiekou.Instance.getXunJian(taskItem, (listRoomItem) => { XunJianAllData.listRoomItem = listRoomItem; Debug.Log(" DGJ ===> getXunJian " + JsonConvert.SerializeObject(listRoomItem)); }); } }); } else { Debug.LogError(" 当前账号内无机房列表 "); } }); } }