using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class oneimageSon : UIController { [SerializeField] Button btn; [SerializeField] List text; new string name; // Start is called before the first frame update void Start() { btn.onClick.AddListener(()=>Debug.Log("输出"+id)); //init(("阿斯顿","阿斯顿","阿斯顿","阿斯顿")); } public void init((string,string,string,string) item) { text[0].text = item.Item1; text[1].text = item.Item2; text[2].text = item.Item3; text[3].text = item.Item4; } }