mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-19 03:20:33 +00:00
18 lines
551 B
C#
18 lines
551 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();
|
|||
|
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|