DianLiangTuBIaoManager.cs 745 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. using XCharts.Runtime;
  7. using static Manager;
  8. public class DianLiangTuBIaoManager : UpdateManager
  9. {
  10. public GameObject list;
  11. public LineChart lineChart;
  12. public int type;
  13. public override void updateData()
  14. {
  15. base.updateData();
  16. DataManager.Instance.GetDLBiao((data)=> {
  17. setLineData(lineChart, data);
  18. },type);
  19. DataManager.Instance.GetWSD((data)=>{
  20. Text[] tlist = list.GetComponentsInChildren<Text>();
  21. for (int i = 0; i < tlist.Length; i++)
  22. {
  23. tlist[i].text = data.serverList[i].name;
  24. }
  25. });
  26. }
  27. }