update space shooter

This commit is contained in:
hevinci
2023-07-05 16:31:29 +08:00
parent b0917623b6
commit 8eadba3aa6
2 changed files with 21 additions and 11 deletions
@@ -6,15 +6,19 @@ using UnityEngine;
using YooAsset;
/*
public class StreamingAssetsDefine
{
public const string RootFolderName = "yoo";
}
/// <summary>
/// 内置文件查询服务类
/// </summary>
public class GameQueryServices : IQueryServices
{
public bool QueryStreamingAssets(string fileName)
public bool QueryStreamingAssets(string packageName, string fileName)
{
string buildinFolderName = YooAssets.GetStreamingAssetBuildinFolderName();
return StreamingAssetsHelper.FileExists($"{buildinFolderName}/{fileName}");
return StreamingAssetsHelper.FileExists($"{StreamingAssetsDefine.RootFolderName}/{packageName}/{fileName}");
}
}