12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using XCharts.Runtime;
- public class K8SManager : UpdateManager
- {
- public List<RingChart> items;
- public override void updateData()
- {
- base.updateData();
- DataManager.Instance.GetK8s((data) => {
- for (int i = 0; i < items.Count; i++)
- {
- SerieData data1 = items[i].series[0].GetSerieData(0);
- data1.data[0] = double.Parse(data[i].value);
- data1.data[1] = double.Parse(data[i].max);
- items[i].gameObject.GetComponent<RingValue>().setData(data[i]);
- items[i].gameObject.SetActive(true);
- }
- });
-
- }
- }
|