Commit 6a0c365f authored by wildfirecode's avatar wildfirecode

1

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