private static void DebugWriteLogic(ConsoleColor color, string str, params object[] args) { lock (DebugLogLock) { if (NetDebug.Logger == null) { #if UNITY UnityEngine.Debug.LogFormat(str, args); #elif WINRT Debug.WriteLine(str, args); #else Console.ForegroundColor = color; Console.WriteLine(str, args); Console.ForegroundColor = ConsoleColor.Gray; #endif } else { NetDebug.Logger.WriteNet(color, str, args); } } }
internal static void DebugWriteForce(ConsoleColor color, string str, params object[] args) { DebugWriteLogic(color, str, args); }