少年修仙传客户端代码仓库
hch
2019-10-24 83016483bf738575bd5ab496b32b25a95c25a283
0312 防范奇遇地图加载错误问题
1个文件已修改
17 ■■■■■ 已修改文件
Fight/Stage/Dungeon/AdventureStage.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/Dungeon/AdventureStage.cs
@@ -58,6 +58,7 @@
            yield return null;
        }
        var _hero = PlayerDatas.Instance.hero;
        if (_hero != null)
        {
@@ -137,12 +138,16 @@
        }
        WindowCenter.Instance.Open<LoadingWin>();
        WindowCenter.Instance.Close<MainInterfaceWin>();
        var _async = SceneManager.UnloadSceneAsync("Map140_Qy");
        yield return _async;
        if (!AssetSource.sceneFromEditor)
        {
            AssetBundleUtility.Instance.UnloadAssetBundle("maps/map140_qy", true, false);
        WindowCenter.Instance.Close<MainInterfaceWin>();
        if (SceneManager.GetSceneByName("Map140_Qy") != null)
        {
            var _async = SceneManager.UnloadSceneAsync("Map140_Qy");
            yield return _async;
            if (!AssetSource.sceneFromEditor)
            {
                AssetBundleUtility.Instance.UnloadAssetBundle("maps/map140_qy", true, false);
            }
        }
        var _hero = PlayerDatas.Instance.hero;
        if (_hero != null)