using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using Unity.VisualScripting; using UnityEditor; using UnityEngine; using UnityEngine.UI; using UnityEngine.Windows; public class AllHouseContro : MonoBehaviour { public PlayerInfo settlementCoinUpdate;//结算后更新左上角玩家金币数字=================================================================== 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(); public Allother allother;//控制其他蜗牛 public bool HaveallotherMove; public List otherWoniusList=new List();//其他蜗牛列表 public PlayerMove player;//玩家 public bool HaveLoad; // 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