This commit is contained in:
zhangzheng
2026-03-16 18:32:46 +08:00
parent 4d18a884ba
commit 6cc8b62c33
2 changed files with 5 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ namespace Stary.Evo
Debug.LogError($"UnityEvo:从本地缓存中资源包,初始化失败:{e}");
}
return false;
var operation = package.RequestPackageVersionAsync();
await operation;
@@ -190,10 +190,13 @@ namespace Stary.Evo
{
CustomPlayerPrefs.SetString($"{AppConfig.PackageDomainName}_GAME_VERSION", operation.PackageVersion);
Debug.Log("UnityEvo:从本地缓存中加载资源包,初始化获取版本号成功!");
return true;
}
else
{
Debug.LogError($"UnityEvo:从本地缓存中加载资源包,初始化获取版本号失败!");
return false;
}
}