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