Commit 36bc1536 authored by Tt's avatar Tt

2人匹配bug修复

parent 4277b60f
......@@ -105,15 +105,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
initView() {
this.addComponents();
this.hideVoice();
this.initBg();
this.initLoadingLayer();
this.initPiece();
}
getJumpList() {
const jumpList = [];
addComponents() {
cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => {
let itemData = node.getComponent("BoardGame2_ItemData");
if (!itemData) {
......@@ -131,6 +129,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
});
}
getJumpList() {
const jumpList = [];
// cc.find('Canvas/bg/chessBoard/boardItems').children.forEach(node => {
// const itemData = node.getComponent("BoardGame2_ItemData");
// if (itemData.jump) {
......@@ -1200,13 +1203,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
private checkWords(data) {
const sentences = data.result.sentences;
if (!sentences) return true;
for (let i = 0; i < sentences.length; i++) {
const details = sentences[i].details;
const isSuccess = details.some(item => item.overall <= 40);
if (isSuccess) {
return false;
}
if (isSuccess) return false;
}
return true;
}
......
......@@ -114,7 +114,7 @@ export class GameServer {
this.addPlayer(playerInfo);
}
//TODO:调试加速
}, 1000)//RandomInt(10000, 15000)
}, 10000)//RandomInt(10000, 15000)
);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment