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