1
This commit is contained in:
@@ -4,27 +4,24 @@ namespace BITKit
|
||||
{
|
||||
public static class BIT4Log
|
||||
{
|
||||
const string _debugLevel = "DebugLevel";
|
||||
#if UNITY_EDITOR
|
||||
[UnityEngine.RuntimeInitializeOnLoadMethod]
|
||||
private static void Reload()
|
||||
{
|
||||
OnLog = null;
|
||||
OnException = null;
|
||||
OnWarning = null;
|
||||
OnSetConsoleColor = null;
|
||||
OnNextLine = null;
|
||||
}
|
||||
#endif
|
||||
public static event Action<string> OnLog;
|
||||
public static event Action<Exception> OnException;
|
||||
public static event Action<string> OnWarning;
|
||||
public static event Action<ConsoleColor> OnSetConsoleColor;
|
||||
public static event Action OnNextLine;
|
||||
private static bool LogTime;
|
||||
static Type currentType;
|
||||
[ExcuteOnAwake]
|
||||
public static void Start()
|
||||
{
|
||||
}
|
||||
[ExcuteOnStop]
|
||||
public static void Stop()
|
||||
{
|
||||
OnLog = null;
|
||||
OnException = null;
|
||||
OnWarning = null;
|
||||
OnNextLine = null;
|
||||
}
|
||||
|
||||
private static Type currentType;
|
||||
[BITCommand]
|
||||
public static void UseLogTime()
|
||||
{
|
||||
|
Reference in New Issue
Block a user