private void AutoDiscoverUpdate() { //Searching Enabled-> Update DiscoveryClient to check results, Wait Interval then Ping network. pingIntervalCurrent += Time.deltaTime; if (pingIntervalCurrent > PingIntervalSec) { pingIntervalCurrent = 0; discoveryClient.Ping(); } discoveryClient.Update(); }
private void AutoDiscoverUpdate() { //Searching Enabled-> Update DiscoveryClient to check results, Wait Interval then Ping network. pingIntervalCurrent += Time.deltaTime; if (pingIntervalCurrent > PingIntervalSec) { if (ShowDetailedLogs) { Debug.Log("Looking for servers..."); } pingIntervalCurrent = 0; discoveryClient.Ping(); } discoveryClient.Update(); }