private void Debug(string context) { lock (_debugMutex) { var str = $"{(IsServer ? "[SERVER]" : "[CLIENT]")}"; RUDPLog.Info($"{str} : {context}"); } }
private void Debug(string context) { lock (_debugMutex) { //Console.ForegroundColor = IsServer ? ConsoleColor.Cyan : ConsoleColor.Green; var str = $"{(IsServer ? "[SERVER]" : "[CLIENT]")}"; RUDPLog.Info($"{str} : {context}"); //Console.ResetColor(); } }