using UnityEngine; using UnityEngine.UI; public class ExpandableList : MonoBehaviour { public GameObject contentPanel; private bool isExpanded = false; // Start is called before the first frame update void Start() { // 为按钮设置点击事件 Button button = this.gameObject.GetComponent