Commit 4947222f authored by Tt's avatar Tt

提交

parent 45206b2b
......@@ -44,7 +44,7 @@ export default class NewClass extends cc.Component {
this.curGroupIndex = 0;
this.canvas = cc.find('Canvas');
const gArr = Game.getIns().lists;
if (gArr.length <= 1) {
if (gArr.length < 1) {
return;
}
......
......@@ -272,8 +272,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
setTimeout(() => {
this.updateCardResult();
this.updateLollipop().then(() => {
Game.getIns().addPage();
if (Game.getIns().isOver) {
if (!Game.getIns().addPage()) {
pg.event.emit("gameOver")
} else {
pg.event.emit("nextPage")
......@@ -287,8 +286,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
setTimeout(() => {
this.updateCardResult();
this.updateLollipop().then(() => {
Game.getIns().addPage();
if (Game.getIns().isOver) {
if (!Game.getIns().addPage()) {
pg.event.emit("gameOver")
} else {
pg.event.emit("nextPage")
......
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