using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XCharts.Runtime; using static Manager; public class DianLiangTuBIaoManager : UpdateManager { public GameObject list; public LineChart lineChart; public int type; public override void updateData() { base.updateData(); DataManager.Instance.GetDLBiao((data)=> { setLineData(lineChart, data); },type); DataManager.Instance.GetWSD((data)=>{ Text[] tlist = list.GetComponentsInChildren(); for (int i = 0; i < tlist.Length; i++) { tlist[i].text = data.serverList[i].name; } }); } }