123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using XCharts.Runtime;
- public class SheBeiShiShiType : UpdateManager
- {
- public Text runtext;
- public Text guzhangtext;
- public Text daijitext;
- public Text lixiantext;
- public RingChart runrc;
- public RingChart guzhangrc;
- public RingChart daijirc;
- public RingChart lixianrc;
- override public void updateData()
- {
- base.updateData();
- StartCoroutine(DeMaDataManager.Instance.GetShishiType((str)=>{
- runtext.text = str[0].ct.ToString();
- SerieData data1 = runrc.series[0].GetSerieData(0);
- data1.data[0] = str[0].ct;
- data1.data[1] = 100;
- guzhangtext.text = str[0].ct.ToString();
- SerieData data2 = guzhangrc.series[0].GetSerieData(0);
- data2.data[0] = str[1].ct;
- data2.data[1] = 100;
- daijitext.text = str[0].ct.ToString();
- SerieData data3 = daijirc.series[0].GetSerieData(0);
- data3.data[0] = str[2].ct;
- data3.data[1] = 100;
- lixiantext.text = str[0].ct.ToString();
- SerieData data4 = lixianrc.series[0].GetSerieData(0);
- data4.data[0] = str[3].ct;
- data4.data[1] = 100;
- })) ;
- }
- }
|