示例#1
0
        // Update all state
        private async Task UpdateState()
        {
            try
            {
                while (running)
                {
                    botsMgr.UpdateBots();
                    await SendEntitiesInfo();

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

                    await Task.Delay(30);
                }
                catch { }
            }
        }