Fixed Custom Inspector not compiling
This commit is contained in:
parent
5d8c44317d
commit
86edd46ab5
3 changed files with 7 additions and 17 deletions
|
|
@ -10,12 +10,11 @@ using Mirror.SimpleWeb;
|
||||||
using System;
|
using System;
|
||||||
using kcp2k;
|
using kcp2k;
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
|
||||||
namespace LightReflectiveMirror
|
namespace LightReflectiveMirror
|
||||||
{
|
{
|
||||||
[UnityEditor.CustomEditor(typeof(LightReflectiveMirrorTransport))]
|
#if UNITY_EDITOR
|
||||||
|
[CustomEditor(typeof(LightReflectiveMirrorTransport))]
|
||||||
public class LRMInspector : UnityEditor.Editor
|
public class LRMInspector : Editor
|
||||||
{
|
{
|
||||||
int serverPort = 7070;
|
int serverPort = 7070;
|
||||||
string serverIP;
|
string serverIP;
|
||||||
|
|
@ -251,5 +250,5 @@ namespace LightReflectiveMirror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
#endif
|
||||||
#endif
|
}
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 588870f5e430f334592ddea2aedd6c98
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
|
|
@ -98,8 +98,10 @@ namespace LightReflectiveMirror
|
||||||
throw new Exception("LRM | Client to Server Transport cannot be LRM.");
|
throw new Exception("LRM | Client to Server Transport cannot be LRM.");
|
||||||
|
|
||||||
SetTransportPort(port);
|
SetTransportPort(port);
|
||||||
|
|
||||||
|
|
||||||
this.serverIP = serverIP;
|
this.serverIP = serverIP;
|
||||||
|
|
||||||
_clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()];
|
_clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()];
|
||||||
clientToServerTransport.ClientConnect(serverIP);
|
clientToServerTransport.ClientConnect(serverIP);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue