Update LightReflectiveMirrorTransport.cs

This commit is contained in:
cxxpxr 2021-04-08 20:46:24 -04:00
parent 23165b7d1f
commit 358169d8b6

View file

@ -12,7 +12,6 @@ namespace LightReflectiveMirror
[DefaultExecutionOrder(1001)] [DefaultExecutionOrder(1001)]
public partial class LightReflectiveMirrorTransport : Transport public partial class LightReflectiveMirrorTransport : Transport
{ {
private void OnConnectedToRelay() => _connectedToRelay = true;
public bool IsAuthenticated() => _isAuthenticated; public bool IsAuthenticated() => _isAuthenticated;
private void Awake() private void Awake()
{ {
@ -61,6 +60,12 @@ namespace LightReflectiveMirror
serverStatus = "Disconnected from relay."; serverStatus = "Disconnected from relay.";
} }
private void OnConnectedToRelay()
{
_connectedToRelay = true;
RequestServerList();
}
public void ConnectToRelay() public void ConnectToRelay()
{ {
if (!useLoadBalancer) if (!useLoadBalancer)