Commit 0ffa12fd authored by linzhiguo's avatar linzhiguo

# 不再删除正确选项

parent 7512accf
......@@ -203,8 +203,6 @@ cc.Class({
this.addStar();
}
console.log(this.data);
this._speed = Math.max(2,2/1280*this._frameSize.width);
......@@ -254,7 +252,7 @@ cc.Class({
for(let i = 0; i < area.childrenCount; i++){
let option_node = area.children[i];
let option = option_node.getComponent(cc.js.getClassByName('WordOption'));
if (this._touched != true && cc.rect(option_node.getBoundingBoxToWorld()).contains(event.touch._point)){
if (this._touched != true && option_node.active == true && cc.rect(option_node.getBoundingBoxToWorld()).contains(event.touch._point)){
this.playAudioByName('tap');
// cc.tween(this)
// .delay(0.2)
......@@ -335,7 +333,8 @@ cc.Class({
// .start();
//this._xs[i%2] += selected.target._w;
selected.target.removeFromParent();
selected.target.active = false;
//selected.target.removeFromParent();
selected.target = null;
......@@ -688,6 +687,8 @@ cc.Class({
let item, op, len = this._move_area.childrenCount;
for(let i = 0; i < len; i++){
item = this._move_area.children[i];
if (item.active == false)
continue;
op = item.getComponent(cc.js.getClassByName('WordOption'));
if (op.kind_id >= 0){
return false;
......
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