public static IEnumerator DownLoadMatch() { //yield return UICoroutine.uiCoroutine.StartCoroutine(ClientResourcesMgr.LoadClientResource()); RoomData.PrepareRoom(false, 27, 2246, SongMode.Taiko, "", null, 0); IEnumerator itor = null; itor = AnimationLoader.DownLoadStageSceneAnimation(RoomData.PlayMusciInfo.m_strMusicSource, RoomData.PlaySongMode); while (itor.MoveNext()) { yield return(null); } CSceneInfo sceneInfo = StaticData.SceneDataMgr.GetSceneByID((byte)RoomData.PlayScene); if (sceneInfo != null) { itor = SceneLoader.DownLoadStageScene(sceneInfo.m_strSceneStage); while (itor.MoveNext()) { yield return(null); } } UIFlag targetFlag = UIFlag.ui_taigu; itor = UIMgr.DownLoadUISync(targetFlag); while (itor.MoveNext()) { yield return(null); } itor = LoadMatch(null); while (itor.MoveNext()) { yield return(null); } SwitchingControl.HideSwitching(); }