using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using static Manager; public class JiLongItem : MonoBehaviour { public Text jlname; public List list; public void updateData(ServerJiLongData data) { jlname.text = data.name; for (int i = 0; i < data.jiguilist.Count; i++) { list[i].updateData(data.jiguilist[i]); } } }