JiLongItem.cs 447 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using static Manager;
  6. public class JiLongItem : MonoBehaviour
  7. {
  8. public Text jlname;
  9. public List<JiGuiItem> list;
  10. public void updateData(ServerJiLongData data)
  11. {
  12. jlname.text = data.name;
  13. for (int i = 0; i < data.jiguilist.Count; i++)
  14. {
  15. list[i].updateData(data.jiguilist[i]);
  16. }
  17. }
  18. }