mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 03:28:47 +00:00
update logger
This commit is contained in:
@@ -15,13 +15,16 @@ namespace YooAsset
|
||||
/// <summary>
|
||||
/// 初始化资源系统
|
||||
/// </summary>
|
||||
public static void Initialize()
|
||||
/// <param name="logger">自定义日志处理</param>
|
||||
public static void Initialize(ILogger logger = null)
|
||||
{
|
||||
if (_isInitialize)
|
||||
throw new Exception($"{nameof(YooAssets)} is initialized !");
|
||||
|
||||
if (_isInitialize == false)
|
||||
{
|
||||
YooLogger.Logger = logger;
|
||||
|
||||
// 创建驱动器
|
||||
_isInitialize = true;
|
||||
_driver = new UnityEngine.GameObject($"[{nameof(YooAssets)}]");
|
||||
@@ -184,15 +187,6 @@ namespace YooAsset
|
||||
DownloadSystem.CertificateHandlerInstance = instance;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 自定义日志处理
|
||||
/// </summary>
|
||||
/// <param name="logger"></param>
|
||||
public static void SetLogger(IYooLogger logger)
|
||||
{
|
||||
YooLogger.Logger = logger;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置下载系统参数,自定义下载请求
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user