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) { jli = data.id; wname.text = data.name; wwd.text = data.wendu+ "°C"; wsd.text = data.shidu + "%"; } public void chooseitem() { DianLiJianKongManager.Instance.chooseJiGuiToggle(jli); } }