1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using static Manager;
- public class JiGuiItem : MonoBehaviour
- {
- public Text jgname;
- public Text jgzgl;
- public Text jgsrz;
- public Text jgszz;
- public Text jgzyz;
- public void updateData(ServerjiguiData jg)
- {
- jgname.text = jg.name;
- jgzgl.text = jg.zgl.ToString("F2") + "kW";
- jgsrz.text = jg.srz.ToString("F2") + "kWh";
- jgszz.text = jg.szz.ToString("F2") + "kWh";
- jgzyz.text = jg.syz.ToString("F2") + "kWh";
- }
- }
|