init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user