public static void Log(object message, DebugTag debugTag = null) { if (!Settings.LoggerData.LogType.HasFlag(LogType.Log)) { return; } UnityEngine.Debug.Log(message); }
public void Insert(DebugTag tag, RaycastInfo info) { info.index = index; if (!castInfo.ContainsKey(tag)) { castInfo.Add(tag, new List <RaycastInfo>()); } castInfo[tag].Add(info); }
public static void LogAssertion(object message, UnityEngine.Object context, DebugTag debugTag = null) { if (debugTag != null && !HasTag(debugTag)) { return; } if (!Settings.LoggerData.LogType.HasFlag(LogType.Assert)) { return; } UnityEngine.Debug.LogAssertion(message, context); }
public static void LogFormat(string format, DebugTag debugTag = null, params object[] args) { if (debugTag != null && !HasTag(debugTag)) { return; } if (!Settings.LoggerData.LogType.HasFlag(LogType.Log)) { return; } UnityEngine.Debug.LogFormat(format, args); }
public static void LogException(Exception exception, DebugTag debugTag = null) { if (debugTag != null && !HasTag(debugTag)) { return; } if (!Settings.LoggerData.LogType.HasFlag(LogType.Exception)) { return; } UnityEngine.Debug.LogException(exception); }
public static void LogErrorFormat(UnityEngine.Object context, string format, DebugTag debugTag = null, params object[] args) { if (debugTag != null && !HasTag(debugTag)) { return; } if (!Settings.LoggerData.LogType.HasFlag(LogType.Error)) { return; } UnityEngine.Debug.LogErrorFormat(context, format, args); }
public static void LogError(object message, DebugTag debugTag = null) { if (debugTag != null && !HasTag(debugTag)) { return; } if (!Settings.LoggerData.LogType.HasFlag(LogType.Error)) { return; } UnityEngine.Debug.LogError(message); }
private static bool HasTag(DebugTag debugTag) { return(Settings.LoggerData.DebugTags.Contains(debugTag)); }
public static void LogFormat(LogType logType, LogOption logOptions, UnityEngine.Object context, string format, DebugTag debugTag = null, params object[] args) { if (debugTag != null && !HasTag(debugTag)) { return; } if (!Settings.LoggerData.LogType.HasFlag(logType)) { return; } UnityEngine.LogType convertLogType = (UnityEngine.LogType)(int) Mathf.Log((int)logType, 2); UnityEngine.Debug.LogFormat(convertLogType, logOptions, context, format, args); }