mirror of https://github.com/tuyoogame/YooAsset
Update basic sample
parent
cd79f0e434
commit
bdc8285255
|
@ -108,6 +108,7 @@ public class BootScene : MonoBehaviour
|
||||||
{
|
{
|
||||||
public bool QueryStreamingAssets(string fileName)
|
public bool QueryStreamingAssets(string fileName)
|
||||||
{
|
{
|
||||||
|
// 注意:使用了BetterStreamingAssets插件,使用前需要初始化该插件!
|
||||||
string buildinFolderName = YooAssets.GetStreamingAssetBuildinFolderName();
|
string buildinFolderName = YooAssets.GetStreamingAssetBuildinFolderName();
|
||||||
return BetterStreamingAssets.FileExists($"{buildinFolderName}/{fileName}");
|
return BetterStreamingAssets.FileExists($"{buildinFolderName}/{fileName}");
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ internal class FsmUpdateStaticVersion : IFsmNode
|
||||||
|
|
||||||
if (operation.Status == EOperationStatus.Succeed)
|
if (operation.Status == EOperationStatus.Succeed)
|
||||||
{
|
{
|
||||||
Debug.Log($"Found static version : {operation.PackageVersion}");
|
|
||||||
PatchUpdater.PackageVersion = operation.PackageVersion;
|
PatchUpdater.PackageVersion = operation.PackageVersion;
|
||||||
FsmManager.Transition(nameof(FsmUpdateManifest));
|
FsmManager.Transition(nameof(FsmUpdateManifest));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue