Initial commit

This commit is contained in:
hevinci
2022-03-01 10:44:12 +08:00
parent 1d54164bfb
commit e66853fd46
237 changed files with 14462 additions and 2 deletions
+40
View File
@@ -0,0 +1,40 @@
using System.Diagnostics;
namespace YooAsset
{
internal static class Logger
{
/// <summary>
/// 日志
/// </summary>
[Conditional("DEBUG")]
public static void Log(string info)
{
UnityEngine.Debug.Log(info);
}
/// <summary>
/// 警告
/// </summary>
public static void Warning(string info)
{
UnityEngine.Debug.LogWarning(info);
}
/// <summary>
/// 错误
/// </summary>
public static void Error(string info)
{
UnityEngine.Debug.LogError(info);
}
/// <summary>
/// 异常
/// </summary>
public static void Exception(System.Exception exception)
{
UnityEngine.Debug.LogException(exception);
}
}
}