pull/286/head
hevinci 2024-04-12 11:25:12 +08:00
parent 370329b07d
commit a369efa429
3 changed files with 2 additions and 1 deletions

View File

@ -181,6 +181,7 @@ namespace YooAsset
/// </summary> /// </summary>
public void SaveSandboxPackageVersionFile(string version) public void SaveSandboxPackageVersionFile(string version)
{ {
YooLogger.Log($"Save package version : {version}");
string filePath = GetSandboxPackageVersionFilePath(); string filePath = GetSandboxPackageVersionFilePath();
FileUtility.WriteAllText(filePath, version); FileUtility.WriteAllText(filePath, version);
} }

View File

@ -332,6 +332,7 @@ namespace YooAsset
{ {
PackageVersion = _loadBuildinManifestOp.Manifest.PackageVersion; PackageVersion = _loadBuildinManifestOp.Manifest.PackageVersion;
_impl.ActiveManifest = _loadBuildinManifestOp.Manifest; _impl.ActiveManifest = _loadBuildinManifestOp.Manifest;
_impl.FlushManifestVersionFile(); //注意:解压内置清单并加载成功后保存该清单版本。
_steps = ESteps.PackageCaching; _steps = ESteps.PackageCaching;
} }
else else

View File

@ -63,7 +63,6 @@ namespace YooAsset
TryLoadCacheManifest, TryLoadCacheManifest,
DownloadManifest, DownloadManifest,
LoadCacheManifest, LoadCacheManifest,
CheckDeserializeManifest,
Done, Done,
} }