Commit 6e8cea61 authored by linzhiguo's avatar linzhiguo

# 连续拖动正确选项

parent 4ad4086f
......@@ -197,7 +197,7 @@ cc.Class({
},
initView() {
this._play_ani = false;
let stars = this.data.stars;
for(let i = 0; i < stars.length; i++){
this.addStar();
......@@ -246,7 +246,8 @@ cc.Class({
//console.log(event);
if (this._touched == true)
return;
if (this._play_ani != false)
return;
let area = this._move_area;
for(let i = 0; i < area.childrenCount; i++){
......@@ -325,7 +326,9 @@ cc.Class({
let ot = node.getComponent(cc.js.getClassByName('WordOption'));
ot.copyValues(selected);
ot.selected(true);
this._play_ani = true;
kind.showCorrect(node, ()=>{
this._play_ani = false;
if (this.tryFinish())
this.pageFinish();
});
......
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