void ChooseTask() { Debug.Log("ChooseTask"); //GameManager.INSTANCE.gaming.team.id = dropdown.value;错误的取值方法 //将选择的队伍id传给GameManager.INSTANCE.gaming.team GameManager.INSTANCE.gaming.team.id = int.Parse(dropdown.options.ToArray()[dropdown.value].text); UIManager.INSTANCE.chooseteam.gameObject.SetActive(false); HTTPUtil.joinTeam(); UIManager.INSTANCE.loadTeamStatus(); }