Commit 49f02422 authored by zjz1994's avatar zjz1994

性能优化暂存

parent 08c4c0b3
......@@ -86,7 +86,6 @@ export class Element extends eui.Component {
}
fire(type: ElementType) {// zi hong huang lan lv
console.log("烟花绽放");
this._fireworksTimer = new Date().getTime();
if (type == ElementType.FIREWORKS_RABBIT) //rabbit 紫
this.toFireworksAction(1, 90);
......@@ -586,6 +585,9 @@ export class Element extends eui.Component {
Pool.recover(RecoverName.CANNO,this.cannoMoveClip);
this.cannoMoveClip = null;
}
if(this._fireworks&&this._fireworks.parent){
this._fireworks.parent.removeChild(this._fireworks);
}
}
......
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