Commit e0f0ebe9 authored by 范雪寒's avatar 范雪寒

feat: 修正语法错误

parent 6d3fbd89
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
......@@ -141,8 +141,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
.start();
});
const dice = cc.find("Canvas/bg/chessBoard/diceBg/dice");
dice["canClick"] = true;
const dice2 = cc.find("Canvas/bg/chessBoard/diceBg/dice");
dice2["canClick"] = true;
}
stopBlinkTheDice() {
......@@ -153,8 +153,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
node.scale = 1;
node.opacity = 255;
});
const dice = cc.find("Canvas/bg/chessBoard/diceBg/dice");
dice["canClick"] = false;
const dice2 = cc.find("Canvas/bg/chessBoard/diceBg/dice");
dice2["canClick"] = false;
}
greyDice() {
......@@ -602,7 +602,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
.delay(0.5)
.to(0.5, { opacity: 0 })
.call(() => {
resolve();
resolve(null);
})
.start();
});
......
......@@ -107,7 +107,7 @@ export class GameServer {
}
async onFrameEvent(data) {
if (this.gameStatus.gameOver) {
if (this.gameStatus['gameOver']) {
return;
}
if (data.type == "roll") {
......@@ -128,7 +128,7 @@ export class GameServer {
type: "SERVER_playerWin",
color: this.gameStatus.current,
});
this.gameStatus.gameOver = true;
this.gameStatus['gameOver'] = true;
}
} else if (data.type == "right") {
if (this.gameStatus.letter != "") {
......@@ -149,7 +149,7 @@ export class GameServer {
type: "SERVER_playerWin",
color: this.gameStatus.current,
});
this.gameStatus.gameOver = true;
this.gameStatus['gameOver'] = true;
}
} else {
console.log('汪汪汪');
......
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