1
This commit is contained in:
@@ -14,6 +14,7 @@ namespace BITKit
|
||||
[SerializeReference,SubclassSelector] private IProvider pingOutput;
|
||||
[SerializeReference,SubclassSelector] private IProvider resolutionOutput;
|
||||
[SerializeReference,SubclassSelector] private IProvider frameRateOutput;
|
||||
[SerializeReference, SubclassSelector] private INetClient clientPing;
|
||||
private readonly DeltaTimer timer = new();
|
||||
private Ping ping;
|
||||
[Header(Constant.Header.InternalVariables)]
|
||||
@@ -28,7 +29,12 @@ namespace BITKit
|
||||
|
||||
if (fpsInterval.AllowUpdate)
|
||||
fpsOutput.Set((string)timer);
|
||||
if (pingOutput is not null)
|
||||
|
||||
if (clientPing is not null)
|
||||
{
|
||||
pingOutput.Set(clientPing.Ping.ToString());
|
||||
}
|
||||
else if (pingOutput is not null)
|
||||
{
|
||||
switch (ping)
|
||||
{
|
||||
|
Reference in New Issue
Block a user