guo

Results 2 comments of guo

服务端app.js中把配置参数heartbeat的值改大点就好了。。。 app.configure('production|development', 'connector', function(){ app.set('connectorConfig', { connector : pomelo.connectors.hybridconnector, heartbeat : 300, // closeTimeout : 60, // heartbeatTimeout : 60, // heartbeatInterval : 25, disconnectOnTimeout: true, // enable useDict will...

不要在回调里访问UnityEngine下的API,因为UnityEngine下的API只能在主线程访问,你可以设置一个变量控制状态,然后在Update里操作UnityEngine下的API