refactor : 重构代码

This commit is contained in:
何冠峰
2026-01-17 18:44:48 +08:00
parent e10888de93
commit 0a1c81faf1
75 changed files with 219 additions and 197 deletions
@@ -77,7 +77,7 @@ namespace YooAsset
{
if (_isInitialized)
{
YooLogger.Warning("Operation system is already initialized!");
YooLogger.Warning("Operation system is already initialized.");
return;
}
@@ -174,7 +174,7 @@ namespace YooAsset
// 不允许销毁默认调度器
if (packageName == GlobalSchedulerName)
{
throw new YooInternalException("Cannot destroy the global package scheduler!");
throw new YooInternalException("Cannot destroy the global package scheduler.");
}
if (_schedulerDic.TryGetValue(packageName, out var scheduler))
@@ -261,7 +261,7 @@ namespace YooAsset
throw new YooInternalException("Package name is null or empty.");
if (_isInitialized == false)
throw new YooInternalException($"{nameof(OperationSystem)} not initialized !");
throw new YooInternalException($"{nameof(OperationSystem)} not initialized.");
}
#endregion
}