diff --git a/Netick/Editor/Netick.Unity.Editor.dll b/Netick/Editor/Netick.Unity.Editor.dll index 3f2a461..319e7ec 100644 Binary files a/Netick/Editor/Netick.Unity.Editor.dll and b/Netick/Editor/Netick.Unity.Editor.dll differ diff --git a/Netick/Editor/Netick.Unity.Pro.Editor.dll b/Netick/Editor/Netick.Unity.Pro.Editor.dll index d103935..fbe9184 100644 Binary files a/Netick/Editor/Netick.Unity.Pro.Editor.dll and b/Netick/Editor/Netick.Unity.Pro.Editor.dll differ diff --git a/Netick/Editor/Unity.Netick.CodeGen.dll b/Netick/Editor/Unity.Netick.CodeGen.dll index b587ac2..4f1c230 100644 Binary files a/Netick/Editor/Unity.Netick.CodeGen.dll and b/Netick/Editor/Unity.Netick.CodeGen.dll differ diff --git a/Netick/Runtime/Netick.Unity.Pro.dll b/Netick/Runtime/Netick.Unity.Pro.dll index 97fa881..7b8fa4a 100644 Binary files a/Netick/Runtime/Netick.Unity.Pro.dll and b/Netick/Runtime/Netick.Unity.Pro.dll differ diff --git a/Netick/Runtime/Netick.Unity.dll b/Netick/Runtime/Netick.Unity.dll index ab6ef8a..66bdd72 100644 Binary files a/Netick/Runtime/Netick.Unity.dll and b/Netick/Runtime/Netick.Unity.dll differ diff --git a/Scripts/GameStarter.cs b/Scripts/GameStarter.cs index 7128cfb..57e1327 100644 --- a/Scripts/GameStarter.cs +++ b/Scripts/GameStarter.cs @@ -24,7 +24,7 @@ namespace Netick.Samples public string ServerIPAddress = "127.0.0.1"; [Header("Headless Server FPS")] - public bool Cap = true; + public bool Cap = true; public int FPS = 450; [Header("UI")] diff --git a/Scripts/NetworkInfo.cs b/Scripts/NetworkInfo.cs index 00c81d9..c5494e5 100644 --- a/Scripts/NetworkInfo.cs +++ b/Scripts/NetworkInfo.cs @@ -17,9 +17,9 @@ namespace Netick.Samples public float MediumPacketLossThreshold = 1; public float HighPacketLossThreshold = 10; - public Vector2 Icon1Offset = new Vector2(-80, 30); - public Vector2 Icon2Offset = new Vector2(-80, 70); - public Vector2 Icon3Offset = new Vector2(-80, 110); + public Vector2 PacketLossIconOffset = new Vector2(-80, 30); + public Vector2 LatencyIconOffset = new Vector2(-80, 70); + public Vector2 ServerLagIconOffset = new Vector2(-80, 110); public float IconSize = 30; private Texture _packetLossIcon; @@ -62,9 +62,9 @@ namespace Netick.Samples public void DrawIcons() { - var pktLossIconPos = Icon1Offset + (Screen.width * Vector2.right); - var latencyIconPos = Icon2Offset + (Screen.width * Vector2.right); - var serverLagIconPos = Icon3Offset + (Screen.width * Vector2.right); + var pktLossIconPos = PacketLossIconOffset + (Screen.width * Vector2.right); + var latencyIconPos = LatencyIconOffset + (Screen.width * Vector2.right); + var serverLagIconPos = ServerLagIconOffset + (Screen.width * Vector2.right); var pktLoss = Mathf.Max(Sandbox.InPacketLoss, Sandbox.OutPacketLoss) * 100; // multiplying by 100 to convert from a decimal to a percentage. var rtt = Sandbox.RTT * 1000f; // multiplying by 1000 to convert from seconds to milliseconds. diff --git a/package.json b/package.json index 3707f32..cfc1bc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.karrar.netick", - "version": "0.12.21", + "version": "0.12.22", "displayName": "Netick", "description": "A networking solution for Unity", "unity": "2021.3",