using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using UnityEditor; using UnityEngine; using UnityEngine.UI; using UnityEngine.Windows; using static UnityEditor.Progress; using static UnityEngine.UIElements.UxmlAttributeDescription; public class AllHouseContro : MonoBehaviour { public List HouseBtnList=new List(); public int roomNo = -1; public int escapeId = -1; public GameObject text; public GameObject detailsText; public HouseBtn house; public List bossobj; public HouseBtn BoosHouse;//Boos房间 public GameObject BazhuPanel; public WarnPanel warnPanel; public List wonnius = new List(); // Start is called before the first frame update async void Start() { battleRoyaleGameDetails(); InvokeRepeating("checkOutAllTheEscapeRoomsAsync", 2,2); } void OnDestroy() { CancelInvoke("checkOutAllTheEscapeRoomsAsync"); } public async Task battleRoyaleGameDetails()//5.1.1 { foreach (HouseBtn item in HouseBtnList) { item.gameObject.GetComponentInChildren