wsdItem.cs 545 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using static Manager;
  6. public class wsdItem : MonoBehaviour
  7. {
  8. public Text wname;
  9. public Text wwd;
  10. public Text wsd;
  11. public int jli;
  12. public void initData(ServerjiguiData data)
  13. {
  14. jli = data.id;
  15. wname.text = data.name;
  16. wwd.text = data.wendu+ "°C";
  17. wsd.text = data.shidu + "%";
  18. }
  19. public void chooseitem()
  20. {
  21. DianLiJianKongManager.Instance.chooseJiGuiToggle(jli);
  22. }
  23. }