mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 16:50:18 +00:00
update extension sample
This commit is contained in:
@@ -58,7 +58,7 @@ public class CopyBuildinManifestOperation : GameAsyncOperation
|
|||||||
string sourcePath = GetBuildinHashFilePath();
|
string sourcePath = GetBuildinHashFilePath();
|
||||||
string destPath = GetCacheHashFilePath();
|
string destPath = GetCacheHashFilePath();
|
||||||
string url = DownloadSystemHelper.ConvertToWWWPath(sourcePath);
|
string url = DownloadSystemHelper.ConvertToWWWPath(sourcePath);
|
||||||
_hashFileRequestOp = new UnityWebFileRequestOperation(url, destPath);
|
_hashFileRequestOp = new UnityWebFileRequestOperation(url, destPath, 60);
|
||||||
OperationSystem.StartOperation(_packageName, _hashFileRequestOp);
|
OperationSystem.StartOperation(_packageName, _hashFileRequestOp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ public class CopyBuildinManifestOperation : GameAsyncOperation
|
|||||||
string sourcePath = GetBuildinManifestFilePath();
|
string sourcePath = GetBuildinManifestFilePath();
|
||||||
string destPath = GetCacheManifestFilePath();
|
string destPath = GetCacheManifestFilePath();
|
||||||
string url = DownloadSystemHelper.ConvertToWWWPath(sourcePath);
|
string url = DownloadSystemHelper.ConvertToWWWPath(sourcePath);
|
||||||
_manifestFileRequestOp = new UnityWebFileRequestOperation(url, destPath);
|
_manifestFileRequestOp = new UnityWebFileRequestOperation(url, destPath, 60);
|
||||||
OperationSystem.StartOperation(_packageName, _manifestFileRequestOp);
|
OperationSystem.StartOperation(_packageName, _manifestFileRequestOp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class GetBuildinPackageVersionOperation : GameAsyncOperation
|
|||||||
{
|
{
|
||||||
string filePath = GetBuildinPackageVersionFilePath();
|
string filePath = GetBuildinPackageVersionFilePath();
|
||||||
string url = DownloadSystemHelper.ConvertToWWWPath(filePath);
|
string url = DownloadSystemHelper.ConvertToWWWPath(filePath);
|
||||||
_versionFileRequestOp = new UnityWebTextRequestOperation(url);
|
_versionFileRequestOp = new UnityWebTextRequestOperation(url, 60);
|
||||||
OperationSystem.StartOperation(_packageName, _versionFileRequestOp);
|
OperationSystem.StartOperation(_packageName, _versionFileRequestOp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user