v7.0 release

This commit is contained in:
Derek 2021-03-23 00:01:35 -05:00
parent a57b48105b
commit 1cb3d2b64f
2 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -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()