예제 #1
0
        public void Update()
        {
            Matchmaking.FindMatches();

            CombineConnectionsWithMatches();

            foreach (NetworkConnection connection in m_waitingClientConnections.Entries)
            {
                if (!connection.Connected)
                {
                    RemoveClientFromQueue(connection);
                }
            }

            if (UpdateMatchmakingQueue == true)
            {
                BroadcastMatchmakingStatus();
                UpdateMatchmakingQueue.Restart();
            }

            m_waitingClientConnections.TrimExcess();    // Helps debugging Memory Leaks
        }