IEnumerator MessageCheckLoop() { while (true) { var messages = receiveBuffer.ReadAllMessages(); foreach (var m in messages) { MessageProcessor.Process(m); } yield return(null); } }
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); } }