update file system
重构运行时核心代码
This commit is contained in:
@@ -7,7 +7,7 @@ namespace YooAsset
|
||||
/// <summary>
|
||||
/// 加载结果
|
||||
/// </summary>
|
||||
public object Result { protected set; get; }
|
||||
public BundleResult Result { protected set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 下载进度
|
||||
@@ -24,4 +24,25 @@ namespace YooAsset
|
||||
/// </summary>
|
||||
public abstract void AbortDownloadOperation();
|
||||
}
|
||||
|
||||
internal sealed class FSLoadBundleCompleteOperation : FSLoadBundleOperation
|
||||
{
|
||||
private readonly string _error;
|
||||
|
||||
internal FSLoadBundleCompleteOperation(string error)
|
||||
{
|
||||
_error = error;
|
||||
}
|
||||
internal override void InternalOnStart()
|
||||
{
|
||||
Status = EOperationStatus.Failed;
|
||||
Error = _error;
|
||||
}
|
||||
internal override void InternalOnUpdate()
|
||||
{
|
||||
}
|
||||
public override void AbortDownloadOperation()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user