fix:(NetworkServer) Added check for UNITY_EDITOR in Listen

This commit is contained in:
MrGadget1024 2023-11-06 08:12:38 -05:00
parent b2f2e1c464
commit fd758a8a88

View File

@ -120,7 +120,7 @@ public static void Listen(int maxConns)
if (Transport.active is PortTransport portTransport) if (Transport.active is PortTransport portTransport)
{ {
#if UNITY_SERVER #if UNITY_SERVER && !UNITY_EDITOR
Console.ForegroundColor = ConsoleColor.Green; Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"Server listening on port {portTransport.Port}"); Console.WriteLine($"Server listening on port {portTransport.Port}");
Console.ResetColor(); Console.ResetColor();