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