摘要:
Unity3D中程序后台运行,我原本认为当Application.runInBackground=false时,Socket保持连接,但是不接受数据,经过测试并非如此,当Application.runInBackground=false时,同样可以接受来自Socket发送的消息。下面是我测试的代码: UnitySocket clientSocket; string message = ""; // Use this for initialization void Start () { XmlHelper helper = new XmlHelper(); ... 阅读全文