1234567891011121314151617181920212223242526272829 |
- 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<Text>();
- for (int i = 0; i < tlist.Length; i++)
- {
- tlist[i].text = data.serverList[i].name;
- }
- });
- }
- }
|