1234567891011121314151617181920212223242526272829 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using XCharts.Runtime;
- public class K8SManager : UpdateManager
- {
- public Text kname;
- public Text kstatue;
- public RingChart kitem;
- public override void updateData()
- {
- base.updateData();
- DataManager.Instance.GetK8s((data) => {
-
- SerieData data1 = kitem.series[0].GetSerieData(0);
- data1.data[0] = double.Parse(data[2].value);
- data1.data[1] = double.Parse(data[2].max);
- kitem.gameObject.GetComponent<RingValue>().setData(data[2]);
- kitem.gameObject.SetActive(true);
- kname.text = data[0].value.ToString();
- kstatue.text = data[1].value.ToString();
- });
-
- }
- }
|