Files
tothvillar e896e2ead4 init
2026-07-09 15:04:14 +08:00

30 lines
727 B
JavaScript

cc.Class({
extends: cc.Component,
properties: {
oknum: {
default: 0,
type: null,
displayName: "成功数"
},
eventNode_over: {
default: [],
type: cc.Node,
displayName: "结束事件节点"
}
},
start: function () {
this.finshiNmu = [];
cc.global.levelCount = this;
},
jiance: function () {
cc.global.Source.onPlayBtnEffect("ok");
console.log("走几遍" + this.finshiNmu.length);
if (this.finshiNmu.length == this.oknum) {
console.log("走几遍");
for (var e = 0; e < this.eventNode_over.length; e++) {
cc.global.gamewin = true;
this.eventNode_over[e] && this.eventNode_over[e].switchEvent();
}
}
}
});