using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Linq; using UnityEngine.Events; public class Personnelpreparation : MonoBehaviour { private Button closeBtn; private ScrollRect scrollView; private List subObjects; // 用于存储Scroll View的Content下的子物体Transform列表 // 定义一个事件,用于在子物体状态变化时触发重新排序 public UnityEvent onStatusChanged; // Start is called before the first frame update void Start() { closeBtn=transform.Find("bg/top/closeBtn").GetComponent