22 lines
823 B
C#
22 lines
823 B
C#
|
|
namespace YooAsset
|
|
{
|
|
/// <summary>
|
|
/// 解压文件系统
|
|
/// </summary>
|
|
internal class DefaultUnpackFileSystem : DefaultCacheFileSystem
|
|
{
|
|
public DefaultUnpackFileSystem()
|
|
{
|
|
}
|
|
public override void OnCreate(string packageName, string rootDirectory)
|
|
{
|
|
base.OnCreate(packageName, rootDirectory);
|
|
|
|
// 注意:重写保存根目录和临时目录
|
|
_cacheBundleFilesRoot = PathUtility.Combine(_packageRoot, DefaultUnpackFileSystemDefine.SaveBundleFilesFolderName);
|
|
_cacheManifestFilesRoot = PathUtility.Combine(_packageRoot, DefaultUnpackFileSystemDefine.SaveManifestFilesFolderName);
|
|
_tempFilesRoot = PathUtility.Combine(_packageRoot, DefaultUnpackFileSystemDefine.TempFilesFolderName);
|
|
}
|
|
}
|
|
} |