This commit is contained in:
CortexCore
2024-06-14 14:12:02 +08:00
parent 349877fe7a
commit ca93bd2c56
9 changed files with 24 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
using System;
using System.Diagnostics;
#if UNITY_64
#if UNITY_5_3_OR_NEWER
using UnityEngine;
#endif
@@ -25,7 +25,7 @@ namespace BITKit
public static event Action<ConsoleColor> OnSetConsoleColor;
public static event Action OnNextLine;
private static Type currentType;
#if UNITY_64
#if UNITY_5_3_OR_NEWER
//[HideInCallstack]
#endif
public static void Log(object x, ConsoleColor color = ConsoleColor.White)
@@ -33,7 +33,7 @@ namespace BITKit
OnSetConsoleColor?.Invoke(color);
OnLog?.Invoke(x?.ToString());
}
#if UNITY_64
#if UNITY_5_3_OR_NEWER
[HideInCallstack]
#endif
public static void Log<T>(object x, ConsoleColor color = ConsoleColor.White)
@@ -50,21 +50,21 @@ namespace BITKit
currentType = typeof(T);
}
#if UNITY_64
#if UNITY_5_3_OR_NEWER
[HideInCallstack]
#endif
public static void LogException(Exception e)
{
OnException?.Invoke(e);
}
#if UNITY_64
#if UNITY_5_3_OR_NEWER
[HideInCallstack]
#endif
public static void Warning(object x)
{
OnWarning?.Invoke(x.ToString());
}
#if UNITY_64
#if UNITY_5_3_OR_NEWER
[HideInCallstack]
#endif
public static void Warning<T>(object x)