This commit is contained in:
Derek S 2021-04-09 08:02:19 -05:00
commit 55a80f62cc
3 changed files with 10 additions and 2 deletions

View file

@ -19,6 +19,9 @@ LoadBalancer
[![Build status](http://monk3.xyz:90/api/projects/status/kh6awelf16hl5um4/branch/main?retina=true)](http://monk3.xyz:90/project/AppVeyor/light-reflective-mirror-canqw/branch/main)
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/derekrs/lrm_loadbalancer?style=for-the-badge)](https://hub.docker.com/r/derekrs/lrm_loadbalancer)
Unity Package
[![Build status](http://monk3.xyz:90/api/projects/status/n7kiywl2ls67pn5c?retina=true)](http://monk3.xyz:90/project/AppVeyor/light-reflective-mirror-wdkoo)

View file

@ -16,7 +16,7 @@ namespace LightReflectiveMirror
[CustomEditor(typeof(LightReflectiveMirrorTransport))]
public class LRMInspector : Editor
{
int serverPort = 7070;
int serverPort = 7777;
string serverIP;
float invalidServerIP = 0;
bool usingLLB = false;

View file

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