Commit 3e4545c6 authored by 汪欢's avatar 汪欢

拼图计时器bug

parent 7e6d244d
......@@ -246,7 +246,7 @@
};
GameView.prototype.onSuccess = function () {
console.log('拼图成功!');
engine.globalEvent.dispatchEvent('pictures-game-success', { time: this._timeCounter });
engine.globalEvent.dispatchEvent('pictures-game-success', { time: GAME_TIME });
this.stop();
};
GameView.prototype.onMove = function (e) {
......
This diff is collapsed.
......@@ -323,7 +323,7 @@ export default class GameView extends engine.Container {
private onSuccess() {
console.log('拼图成功!');
engine.globalEvent.dispatchEvent('pictures-game-success', { time: this._timeCounter });
engine.globalEvent.dispatchEvent('pictures-game-success', { time: GAME_TIME });
this.stop();
}
......
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