using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ShiShiYongDian : UpdateManager { public List texts; override public void updateData() { base.updateData(); StartCoroutine(GetItems()); } public IEnumerator GetItems() { CameraToPose[] cps=new CameraToPose[0]; while(cps.Length<10) { cps =this.GetComponentsInChildren(); yield return null; } StartCoroutine(DeMaDataManager.Instance.GetUseDianLiang((str)=>{ for (int i = 0; i < str.Count;i++) { if( str[i].name.ToString()!="") cps[i].GetComponentsInChildren()[0].text = str[i].name.ToString(); cps[i].GetComponentsInChildren()[1].text = str[i].f.ToString(); } })) ; } }