Commit e5f98ab7 authored by zjz1994's avatar zjz1994

调整炮台石头的规则

parent 1eb5c963
This diff is collapsed.
...@@ -219,7 +219,7 @@ export class Element extends eui.Component { ...@@ -219,7 +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]); this.cannoMoveClip&&this.cannoMoveClip.gotoAndPlay(this.cannoStat[this._cannoStat]);
} }
checkCannoStat(){ checkCannoStat(){
if(this._cannoStat==3){ if(this._cannoStat==3){
...@@ -511,7 +511,7 @@ export class Element extends eui.Component { ...@@ -511,7 +511,7 @@ export class Element extends eui.Component {
listenCn(){ listenCn(){
var statend = this.cannoStat[this._cannoStat+1]; var statend = this.cannoStat[this._cannoStat+1];
if(this.cannoMoveClip.currentFrame>=statend){ if(this.cannoMoveClip.currentFrame>=statend){
console.log("炮台阶段动画播放完毕",this.cannoMoveClip.currentFrame); // console.log("炮台阶段动画播放完毕",this.cannoMoveClip.currentFrame);
this.cannoMoveClip.stop(); 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