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; using static BettingBtn; using static UnityEditor.Progress; public class AllHouseContro : MonoBehaviour { public PlayerInfo settlementCoinUpdate;//结算后更新左上角玩家金币数字=================================================================== public List HouseBtnList=new List(); public int roomNo = -1; public int escapeId = -1; public string gameNo; 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; public HistoryPanel historyPanel; public bool IsLoadIn;//是否已经进入游戏 public bool IsHideLoadPanel;//是否关闭加载页面 // Start is called before the first frame update async void Start() { battleRoyaleGameDetails(); GetInfo516(); InvokeRepeating("checkOutAllTheEscapeRoomsAsync", 2,2); } void OnDestroy() { CancelInvoke("checkOutAllTheEscapeRoomsAsync"); } public async Task battleRoyaleGameDetails()//5.1.1 { foreach (HouseBtn item in HouseBtnList) { item.gameObject.GetComponentInChildren