Mirror/Unity-Technologies-networking/Runtime/Transport.cs
2018-08-17 14:07:54 +02:00

21 lines
675 B
C#

// the transport layer implementation
namespace UnityEngine.Networking
{
public static class Transport
{
public static Telepathy.Client client = new Telepathy.Client();
public static Telepathy.Server server = new Telepathy.Server();
// hlapi needs to know max packet size to show warnings
public static int MaxPacketSize = ushort.MaxValue;
static Transport()
{
// tell Telepathy to use Unity's Debug.Log
Telepathy.Logger.LogMethod = Debug.Log;
Telepathy.Logger.LogWarningMethod = Debug.LogWarning;
Telepathy.Logger.LogErrorMethod = Debug.LogError;
}
}
}