Update YooAsset

pull/4/head
hevinci 2022-03-16 11:02:46 +08:00
parent 7ded7eb2ff
commit 8597b97779
4 changed files with 13 additions and 13 deletions

View File

@ -296,11 +296,11 @@ namespace YooAsset
}
#region 调试专属方法
internal static void GetDebugSummy(DebugSummy summy)
internal static void GetDebugReport(DebugReport report)
{
summy.ClearAll();
summy.BundleCount = _loaders.Count;
summy.AssetCount = _providers.Count;
report.ClearAll();
report.BundleCount = _loaders.Count;
report.AssetCount = _providers.Count;
foreach (var provider in _providers)
{
@ -309,7 +309,7 @@ namespace YooAsset
providerInfo.RefCount = provider.RefCount;
providerInfo.Status = (int)provider.Status;
providerInfo.BundleInfos.Clear();
summy.ProviderInfos.Add(providerInfo);
report.ProviderInfos.Add(providerInfo);
if (provider is BundledProvider)
{
@ -319,7 +319,7 @@ namespace YooAsset
}
// 重新排序
summy.ProviderInfos.Sort();
report.ProviderInfos.Sort();
}
#endregion
}

View File

@ -5,9 +5,9 @@ using System.Collections.Generic;
namespace YooAsset
{
/// <summary>
/// 资源系统调试信息汇总
/// 资源系统调试信息
/// </summary>
internal class DebugSummy
internal class DebugReport
{
public readonly List<DebugProviderInfo> ProviderInfos = new List<DebugProviderInfo>(1000);
public int BundleCount { set; get; }

View File

@ -278,14 +278,14 @@ namespace YooAsset
}
/// <summary>
/// 获取调试汇总信息
/// 获取调试信息
/// </summary>
internal static void GetDebugSummy(DebugSummy summy)
internal static void GetDebugReport(DebugReport report)
{
if (summy == null)
YooLogger.Error($"{nameof(DebugSummy)} is null");
if (report == null)
YooLogger.Error($"{nameof(DebugReport)} is null");
AssetSystem.GetDebugSummy(summy);
AssetSystem.GetDebugReport(report);
}