diff --git a/README.md b/README.md index 39326f5..a7d65cd 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,11 @@ In the config.json file there are a few fields. TransportDLL - This is the name of the dll of the compiled transport dll. TransportClass - The class name of the transport inside the DLL, Including namespaces! -By default, there are 4 compiled transports in the MultiCompiled dll. +By default, there are 5 compiled transports in the MultiCompiled dll. To switch between them you have the following options: * Mirror.LiteNetLibTransport * Mirror.TelepathyTransport +* kcp2k.KcpTransport * Mirror.SimpleWebTransport * Mirror.MultiplexTransport diff --git a/UnityTransport/LightReflectiveMirrorTransport.cs b/UnityTransport/LightReflectiveMirrorTransport.cs index 21e2c20..ab43914 100644 --- a/UnityTransport/LightReflectiveMirrorTransport.cs +++ b/UnityTransport/LightReflectiveMirrorTransport.cs @@ -8,6 +8,7 @@ using UnityEngine.Events; namespace LightReflectiveMirror { + [DefaultExecutionOrder(1001)] public class LightReflectiveMirrorTransport : Transport { [Header("Connection Variables")] @@ -64,6 +65,16 @@ namespace LightReflectiveMirror clientToServerTransport.OnClientDisconnected = Disconnected; } + public override void ClientEarlyUpdate() + { + clientToServerTransport.ClientEarlyUpdate(); + } + + public override void ClientLateUpdate() + { + clientToServerTransport.ClientLateUpdate(); + } + void Disconnected() => diconnectedFromRelay?.Invoke(); public void ConnectToRelay()