using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using static Manager; public class wsdItem : MonoBehaviour { public Text wname; public Text wwd; public Text wsd; public int jli; public void initData(ServerjiguiData data,int idx) { jli = data.id; wname.text = data.name; wwd.text = data.wendu+ "°C"; wsd.text = data.shidu + "%"; if(idx ==0 ) { Invoke("chooseitem",1f); } } public void chooseitem() { DianLiJianKongManager.Instance.chooseJiGuiToggle(jli); } }