|
@@ -6,7 +6,6 @@ using System.Collections.Generic;
|
|
using System.Text.RegularExpressions;
|
|
using System.Text.RegularExpressions;
|
|
using System;
|
|
using System;
|
|
using YooAsset;
|
|
using YooAsset;
|
|
-using System.Threading.Tasks;
|
|
|
|
using GFGGame.Launcher;
|
|
using GFGGame.Launcher;
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
@@ -966,7 +965,6 @@ namespace GFGGame
|
|
Debug.LogError($"加载{fileName}失败 {error}");
|
|
Debug.LogError($"加载{fileName}失败 {error}");
|
|
};
|
|
};
|
|
|
|
|
|
-
|
|
|
|
downloaderOperation.OnDownloadProgressCallback =
|
|
downloaderOperation.OnDownloadProgressCallback =
|
|
(totalDownloadCount, currentDownloadCount, totalDownloadSizeBytes, currentDownloadSizeBytes) =>
|
|
(totalDownloadCount, currentDownloadCount, totalDownloadSizeBytes, currentDownloadSizeBytes) =>
|
|
{
|
|
{
|
|
@@ -992,8 +990,13 @@ namespace GFGGame
|
|
yield break;
|
|
yield break;
|
|
}
|
|
}
|
|
|
|
|
|
- ViewManager.Hide<LoadingView>();
|
|
|
|
- ShowNextStep(_storyStartID);
|
|
|
|
|
|
+ // 加载完成
|
|
|
|
+ LoadingView.Instance.SetProgress(100, () =>
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Hide<LoadingView>();
|
|
|
|
+ ShowNextStep(_storyStartID);
|
|
|
|
+ }
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|