mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Revert "SWT: port changed to Port, WebGL Platform handling"
This reverts commit 75951df2e5
.
This commit is contained in:
parent
75951df2e5
commit
e72f85e640
@ -46,7 +46,7 @@ void DrawPortSettings(Rect position, SerializedProperty property)
|
||||
if (portOption == WebsocketPortOption.MatchWebpageProtocol)
|
||||
port = swt.clientUseWss ? 443 : 80;
|
||||
else
|
||||
port = swt.Port;
|
||||
port = swt.port;
|
||||
|
||||
GUI.enabled = false;
|
||||
EditorGUI.IntField(position, new GUIContent("Client Port"), port);
|
||||
|
@ -50,28 +50,9 @@ public class SimpleWebTransport : Transport, PortTransport
|
||||
|
||||
[Header("Server settings")]
|
||||
|
||||
ushort port = 7778;
|
||||
|
||||
[Tooltip("Port to use for server")]
|
||||
public ushort Port
|
||||
{
|
||||
get
|
||||
{
|
||||
#if UNITY_WEBGL
|
||||
return clientWebsocketSettings.CustomClientPort;
|
||||
#else
|
||||
return port;
|
||||
#endif
|
||||
}
|
||||
set
|
||||
{
|
||||
#if UNITY_WEBGL
|
||||
clientWebsocketSettings.CustomClientPort = value;
|
||||
#else
|
||||
port = value;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
public ushort port = 7778;
|
||||
public ushort Port { get => port; set => port = value; }
|
||||
|
||||
[Tooltip("Groups messages in queue before calling Stream.Send")]
|
||||
public bool batchSend = true;
|
||||
|
Loading…
Reference in New Issue
Block a user