Exemple #1
0
        IEnumerator MessageCheckLoop()
        {
            while (true)
            {
                try
                {
                    var messages = receiveBuffer.ReadAllMessages();
                    foreach (var m in messages)
                    {
                        MessageProcessor.Process(m);
                    }
                }
                catch (System.Exception e) {
                    Debug.Log(e.Message);
                }

                yield return(null);
            }
        }