void Update() { //更新队伍信息 if ((timer -= Time.deltaTime) < 0) { timer = 1F; GameManager.INSTANCE.gaming.team = HTTPUtil.getTeam(); status.text = string.Format( "Id: {0}\nPlayers Count: {1}\nIsOpen: {2}", GameManager.INSTANCE.gaming.team.id, GameManager.INSTANCE.gaming.team.players.Length, GameManager.INSTANCE.gaming.team.open ); //检测队伍是否被锁定,如果被锁定,则开始游戏 if (!GameManager.INSTANCE.gaming.team.open) { //GameManager.INSTANCE.gaming.doodleType = GameManager.INSTANCE.gaming.team.avators [GameManager.INSTANCE.gaming.createRemoteDoodleArrayOffset]; //开始游戏逻辑 UIManager.INSTANCE.teamstatus.gameObject.SetActive(false); UIManager.INSTANCE.loadGaming(); GameManager.INSTANCE.gaming.initialize(); } } }