// Update all state private async Task UpdateState() { try { while (running) { botsMgr.UpdateBots(); await SendEntitiesInfo(); Thread.Sleep(30); } } catch (Exception e) { } }
// Update all state private async Task UpdateState() { while (running) { try { botsMgr.UpdateBots(); await SendEntitiesInfo(); await Task.Delay(30); } catch { } } }