mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 09:40:11 +00:00
style : 规范代码注释
This commit is contained in:
@@ -183,13 +183,15 @@ namespace YooAsset
|
|||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
//TODO 等待导入或解压本地文件完毕,该操作会挂起主线程!
|
//TODO 更新下载后台,防止无限挂起
|
||||||
_fileSystem.DownloadBackend.Update();
|
_fileSystem.DownloadBackend.Update();
|
||||||
|
|
||||||
|
//TODO 等待导入或解压本地文件完毕,该操作会挂起主线程!
|
||||||
InternalUpdate();
|
InternalUpdate();
|
||||||
if (IsDone)
|
if (IsDone)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// 短暂休眠避免完全卡死
|
//TODO 短暂休眠避免完全卡死
|
||||||
System.Threading.Thread.Sleep(1);
|
System.Threading.Thread.Sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,6 +113,10 @@ namespace YooAsset
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
internal override string InternalGetDesc()
|
||||||
|
{
|
||||||
|
return $"{_fileSystem.GetType().FullName}";
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 中止所有下载任务
|
/// 中止所有下载任务
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ namespace YooAsset
|
|||||||
if (IsDone)
|
if (IsDone)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// 短暂休眠避免完全卡死
|
//TODO 短暂休眠避免完全卡死
|
||||||
System.Threading.Thread.Sleep(1);
|
System.Threading.Thread.Sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ namespace YooAsset
|
|||||||
_steps = ESteps.Done;
|
_steps = ESteps.Done;
|
||||||
Status = EOperationStatus.Failed;
|
Status = EOperationStatus.Failed;
|
||||||
Error = $"Try load bundle {Bundle.BundleName} from remote !";
|
Error = $"Try load bundle {Bundle.BundleName} from remote !";
|
||||||
|
YooLogger.Error(Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user