update operation system

快速启动模式
This commit is contained in:
何冠峰
2025-02-19 18:36:33 +08:00
parent 576b842368
commit cc7290f10e
2 changed files with 19 additions and 0 deletions
@@ -13,6 +13,11 @@ namespace YooAsset
private static Stopwatch _watch;
private static long _frameTime;
/// <summary>
/// 快速启动模式
/// </summary>
public static bool QuickStartMode = false;
/// <summary>
/// 异步操作的最小时间片段
/// </summary>
@@ -136,6 +141,11 @@ namespace YooAsset
_newList.Add(operation);
operation.SetPackageName(packageName);
operation.SetStart();
if (QuickStartMode)
{
operation.InternalOnUpdate();
}
}
}
}