Commit 42c95812 authored by liujiangnan's avatar liujiangnan

feat: length错误

parent 54c8ce84
......@@ -188,7 +188,7 @@ cc.Class({
});
},
initStars() {
// this.length = CardManager.getIns().getTestlet();
// this.len = CardManager.getIns().getTestlet();
// this.addStar();
},
initLayout() {
......@@ -414,13 +414,13 @@ cc.Class({
})
});
},
length,
len: null,
addStar() {
if (!this.length) {
this.length = 0;
if (!this.len) {
this.len = 0;
}
this.length++;
let length = this.length;
this.len++;
let length = this.len;
const starLayout = cc.find('Canvas/layout_stars');
starLayout.removeAllChildren();
......
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