mirror of https://github.com/tuyoogame/YooAsset
parent
2cb9278db0
commit
86142ed4db
|
@ -139,8 +139,8 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (assetInfo.IsInvalid)
|
if (assetInfo.IsInvalid)
|
||||||
{
|
{
|
||||||
YooLogger.Warning(assetInfo.Error);
|
|
||||||
CompletedProvider completedProvider = new CompletedProvider(assetInfo);
|
CompletedProvider completedProvider = new CompletedProvider(assetInfo);
|
||||||
|
completedProvider.SetCompleted();
|
||||||
return completedProvider.CreateHandle<SceneOperationHandle>();
|
return completedProvider.CreateHandle<SceneOperationHandle>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,8 +178,8 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (assetInfo.IsInvalid)
|
if (assetInfo.IsInvalid)
|
||||||
{
|
{
|
||||||
YooLogger.Warning(assetInfo.Error);
|
|
||||||
CompletedProvider completedProvider = new CompletedProvider(assetInfo);
|
CompletedProvider completedProvider = new CompletedProvider(assetInfo);
|
||||||
|
completedProvider.SetCompleted();
|
||||||
return completedProvider.CreateHandle<AssetOperationHandle>();
|
return completedProvider.CreateHandle<AssetOperationHandle>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,8 +203,8 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (assetInfo.IsInvalid)
|
if (assetInfo.IsInvalid)
|
||||||
{
|
{
|
||||||
YooLogger.Warning(assetInfo.Error);
|
|
||||||
CompletedProvider completedProvider = new CompletedProvider(assetInfo);
|
CompletedProvider completedProvider = new CompletedProvider(assetInfo);
|
||||||
|
completedProvider.SetCompleted();
|
||||||
return completedProvider.CreateHandle<SubAssetsOperationHandle>();
|
return completedProvider.CreateHandle<SubAssetsOperationHandle>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,9 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
public override void Update()
|
public override void Update()
|
||||||
{
|
{
|
||||||
if (IsDone)
|
}
|
||||||
return;
|
public void SetCompleted()
|
||||||
|
{
|
||||||
if (Status == EStatus.None)
|
if (Status == EStatus.None)
|
||||||
{
|
{
|
||||||
Status = EStatus.Fail;
|
Status = EStatus.Fail;
|
||||||
|
|
|
@ -128,7 +128,6 @@ namespace YooAsset
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建操作句柄
|
/// 创建操作句柄
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
|
||||||
public T CreateHandle<T>() where T : OperationHandleBase
|
public T CreateHandle<T>() where T : OperationHandleBase
|
||||||
{
|
{
|
||||||
// 引用计数增加
|
// 引用计数增加
|
||||||
|
|
Loading…
Reference in New Issue