Commit be9cc5d0 authored by 范雪寒's avatar 范雪寒

fix: length -> starLength

parent d76f8c77
......@@ -22,13 +22,13 @@ cc.Class({
BtnShowStar.on('click', this.showStar.bind(this));
},
length,
starLength: null,
addStar() {
if (!this.length) {
this.length = 0;
if (!this.starLength) {
this.starLength = 0;
}
this.length++;
let length = this.length;
this.starLength++;
let length = this.starLength;
const starLayout = cc.find('Canvas/layout');
starLayout.removeAllChildren();
......
......@@ -98,7 +98,6 @@ cc.Class({
})
.start();
return quadBase;
},
});
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