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:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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)]
|
||||
@@ -71,13 +73,17 @@ namespace Netick.Samples
|
||||
if (Sandbox != null && Sandbox.IsClient)
|
||||
{
|
||||
if (Sandbox.IsConnected)
|
||||
{
|
||||
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();
|
||||
}
|
||||
else
|
||||
|
||||
}
|
||||
else if (ShowConnectButton)
|
||||
{
|
||||
if (GUI.Button(new Rect(10, 10, 200, 50), "Connect"))
|
||||
Sandbox.Connect(Port, ServerIPAddress);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.karrar.netick",
|
||||
"version": "0.11.66",
|
||||
"version": "0.11.67",
|
||||
"displayName": "Netick",
|
||||
"description": "A networking library for unity",
|
||||
"unity": "2021.3",
|
||||
|
||||
Reference in New Issue
Block a user