Fixed Custom Inspector not compiling

This commit is contained in:
Derek S 2021-04-06 13:33:00 -05:00
parent 5d8c44317d
commit 86edd46ab5
3 changed files with 7 additions and 17 deletions

View file

@ -10,12 +10,11 @@ using Mirror.SimpleWeb;
using System;
using kcp2k;
#if UNITY_EDITOR
namespace LightReflectiveMirror
{
[UnityEditor.CustomEditor(typeof(LightReflectiveMirrorTransport))]
public class LRMInspector : UnityEditor.Editor
#if UNITY_EDITOR
[CustomEditor(typeof(LightReflectiveMirrorTransport))]
public class LRMInspector : Editor
{
int serverPort = 7070;
string serverIP;
@ -251,5 +250,5 @@ namespace LightReflectiveMirror
}
}
}
}
#endif
#endif
}

View file

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 588870f5e430f334592ddea2aedd6c98
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -98,8 +98,10 @@ namespace LightReflectiveMirror
throw new Exception("LRM | Client to Server Transport cannot be LRM.");
SetTransportPort(port);
this.serverIP = serverIP;
_clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()];
clientToServerTransport.ClientConnect(serverIP);
}