refactor : 重构代码
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user