// private method // -------------- void Awake() { _Instance = this; GM gm = gameObject.GetComponent <GM>(); if (gm == null) { gameObject.AddComponent <GM>(); } HDebugger.isLogEnable = isShowLog; HDebugger.isWarningEnable = isShowWarning; HDebugger.isErrorEnable = isShowError; HDebugger.isExceptionEnable = isShowException; HDebugger.disableList = new List <HDebuggerModule>(disableList); _disableList = disableList; allQueue = Queue.Synchronized(new Queue()); logQueue = Queue.Synchronized(new Queue()); warningQueue = Queue.Synchronized(new Queue()); errorQueue = Queue.Synchronized(new Queue()); vo = new DebugLogVO(); vo.logString = "Register Log Callback !"; vo.stackTrace = ""; vo.logType = LogType.Log; logQueue.Enqueue(vo); Application.RegisterLogCallback(CatchLogInfo); }
// private method // -------------- void Start() { manager = DebugLogManager.Instance; }