#define ENALBE_LOGGING using UnityEngine; namespace BrewMonster { public class BMLogger { public static void Log(string message) { #if ENALBE_LOGGING Debug.Log(message); #endif } public static void LogError(string message) { #if ENALBE_LOGGING Debug.LogError(message); #endif } public static void LogWarning(string message) { #if ENALBE_LOGGING Debug.LogWarning(message); #endif } public static void LogMono(object source, string message) { #if ENALBE_LOGGING && UNITY_EDITOR if (DebugRegistry.IsEnabled(source)) UnityEngine.Debug.LogError($"[{source}] {message}"); #endif } } }