1
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50"
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50",
|
||||
"GUID:d8b63aba1907145bea998dd612889d6b"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
@@ -16,6 +16,13 @@ namespace BITKit.Net.Kcp
|
||||
[SerializeField] private ushort m_port;
|
||||
[SerializeField] private bool connectOnStart;
|
||||
[SerializeField] private bool autoReconnect;
|
||||
[SerializeField]
|
||||
[ReadOnly]private Vector2 traffic;
|
||||
[SerializeField]
|
||||
[ReadOnly]private string upTraffic;
|
||||
[SerializeField]
|
||||
[ReadOnly]private string downTraffic;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
[SerializeField] private Optional<string> allowDebugHost;
|
||||
[SerializeField] private Optional<ushort> allowDebugPort;
|
||||
@@ -157,6 +164,7 @@ namespace BITKit.Net.Kcp
|
||||
public void Tick()
|
||||
{
|
||||
_netProviderImplementation.Tick();
|
||||
|
||||
}
|
||||
|
||||
public void HandShake()
|
||||
@@ -219,6 +227,9 @@ namespace BITKit.Net.Kcp
|
||||
timer.Update(obj);
|
||||
rate = timer;
|
||||
Tick();
|
||||
traffic = client.Traffic;
|
||||
upTraffic = NetUtils.GetFileSize((long)traffic.x);
|
||||
downTraffic = NetUtils.GetFileSize((long)traffic.y);
|
||||
}
|
||||
[BIT]
|
||||
private void EditorConnect()
|
||||
|
Reference in New Issue
Block a user