mirror of
https://github.com/Kaveinator/NetickProForUnity.git
synced 2025-10-26 09:49:06 -07:00
Fixed an issue with Lag Comp where an exception would be thrown when several HitShape Containers are positioned in the same place.
This commit is contained in:
@@ -17,6 +17,8 @@ namespace Netick.Samples
|
||||
|
||||
public bool AutoStart;
|
||||
public bool AutoConnect;
|
||||
public bool ShowDisconnectButton = true;
|
||||
public bool ShowConnectButton = true;
|
||||
|
||||
[Header("Network")]
|
||||
[Range(0, 65535)]
|
||||
@@ -72,12 +74,16 @@ namespace Netick.Samples
|
||||
{
|
||||
if (Sandbox.IsConnected)
|
||||
{
|
||||
GUI.Label(new Rect(10, 130, 200, 50), $"Connected to {Sandbox.ServerEndPoint}");
|
||||
if (ShowDisconnectButton)
|
||||
{
|
||||
GUI.Label(new Rect(10, 130, 200, 50), $"Connected to {Sandbox.ServerEndPoint}");
|
||||
|
||||
if (GUI.Button(new Rect(10, 220, 200, 50), "Disconnect"))
|
||||
Sandbox.DisconnectFromServer();
|
||||
if (GUI.Button(new Rect(10, 220, 200, 50), "Disconnect"))
|
||||
Sandbox.DisconnectFromServer();
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
else if (ShowConnectButton)
|
||||
{
|
||||
if (GUI.Button(new Rect(10, 10, 200, 50), "Connect"))
|
||||
Sandbox.Connect(Port, ServerIPAddress);
|
||||
|
||||
Reference in New Issue
Block a user