//加载配置数据 private IEnumerator LoadConfigs() { yield return(new WaitUntil(() => MissionConifg.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => TaskConifg.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => ItemConifg.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => TreasureBoxConfig.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => RoleConifg.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => ActionConifg.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => SoundConfig.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => LevelConifg.IsLoadedOK())); RefreshProgress(); yield return(new WaitUntil(() => PlayerDataManager.Init())); RefreshProgress(); Debug.Log("<><MainSceneLoader.LoadConfigs>all configs loaded"); }