From 1cb3d2b64f15fa5fec4996b61eabf4d829b447ee Mon Sep 17 00:00:00 2001 From: Derek Date: Tue, 23 Mar 2021 00:01:35 -0500 Subject: [PATCH] v7.0 release --- README.md | 3 ++- UnityTransport/LightReflectiveMirrorTransport.cs | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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()