Commit 6a0c365f authored by wildfirecode's avatar wildfirecode

1

parent d5996fbe
...@@ -60,18 +60,18 @@ export class Element extends eui.Component { ...@@ -60,18 +60,18 @@ export class Element extends eui.Component {
return t - this._fireworksTimer > 2 * 1000; return t - this._fireworksTimer > 2 * 1000;
} }
fire(type: ElementType) { fire(type: ElementType) {// zi hong huang lan lv
this._fireworksTimer = new Date().getTime(); this._fireworksTimer = new Date().getTime();
if (type == ElementType.FIREWORKS_PIG) if (type == ElementType.FIREWORKS_RABBIT) //rabbit 紫
this.toFireworksAction(1, 90); //pig this.toFireworksAction(1, 90);
else if (type == ElementType.FIREWORKS_CHICKEN) else if (type == ElementType.FIREWORKS_PIG) //pig 粉
this.toFireworksAction(91, 180);//chicken this.toFireworksAction(91, 180);
else if (type == ElementType.FIREWORKS_LION) else if (type == ElementType.FIREWORKS_LION) //lion 黄
this.toFireworksAction(181, 270);//lion this.toFireworksAction(181, 270);
else if (type == ElementType.FIREWORKS_CATTLE) else if (type == ElementType.FIREWORKS_CATTLE) //cattle 蓝
this.toFireworksAction(271, 360);//cattle this.toFireworksAction(271, 360);
else if (type == ElementType.FIREWORKS_RABBIT) else if (type == ElementType.FIREWORKS_CHICKEN) //chicken 绿
this.toFireworksAction(361, 450);//rabbit this.toFireworksAction(361, 450);
} }
_fireworks; _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