refactor : 重构代码

This commit is contained in:
何冠峰
2026-01-17 17:06:57 +08:00
parent da222c6179
commit e10888de93
13 changed files with 42 additions and 43 deletions
@@ -408,8 +408,6 @@ namespace YooAsset
}
#region 调试信息
private const int MaxCycleCheckDepth = 4096; // 循环检测最大深度
/// <summary>
/// 开始的时间
/// </summary>
@@ -466,6 +464,7 @@ namespace YooAsset
/// </summary>
private bool WouldCreateCycle(AsyncOperationBase child)
{
const int MaxCycleCheckDepth = 4096; // 循环检测最大深度
var stack = new Stack<AsyncOperationBase>();
var visited = new HashSet<AsyncOperationBase>();
stack.Push(child);