Commit f8f6bc52 authored by zjz1994's avatar zjz1994

代码暂存

parent a69ebbe6
...@@ -45,8 +45,8 @@ export class Element extends eui.Component { ...@@ -45,8 +45,8 @@ export class Element extends eui.Component {
fishCanEliFlag: boolean; fishCanEliFlag: boolean;
cannoMoveClip:any; cannoMoveClip:any;
cannoStat:number[] = [1,121,181,241,361]; cannoStat:number[] = [1,61,121,181,241,361];
//尝试设置碰撞状态,如果之前被特效集中,那么可以设置碰撞状态。碰撞状态之后可以准备消除。 //尝试设置碰撞状态,如果之前被特效集中,那么可以设置碰撞状态。碰撞状态之后可以准备消除。
setFishNebFlag() { setFishNebFlag() {
if (this._fishState > 0) { if (this._fishState > 0) {
...@@ -219,6 +219,7 @@ export class Element extends eui.Component { ...@@ -219,6 +219,7 @@ export class Element extends eui.Component {
} }
changeShowCannoStat(){ changeShowCannoStat(){
this.cannolab.text = this._cannoStat+""; this.cannolab.text = this._cannoStat+"";
this.cannoMoveClip.gotoAndPlay(this.cannoStat[this._cannoStat]);
} }
checkCannoStat(){ checkCannoStat(){
if(this._cannoStat==3){ if(this._cannoStat==3){
...@@ -508,7 +509,11 @@ export class Element extends eui.Component { ...@@ -508,7 +509,11 @@ export class Element extends eui.Component {
* @param source * @param source
*/ */
listenCn(){ listenCn(){
console.log("炮台充能",this.cannoMoveClip.currentFrame); var statend = this.cannoStat[this._cannoStat+1];
if(this.cannoMoveClip.currentFrame>=statend){
console.log("炮台阶段动画播放完毕",this.cannoMoveClip.currentFrame);
this.cannoMoveClip.stop();
}
} }
/** /**
* 炮台动画播放一次完毕 * 炮台动画播放一次完毕
......
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