diff --git a/assets/script/game/hero/HeroAnmComp.ts b/assets/script/game/hero/HeroAnmComp.ts index f7fc003b..0e0c1ea0 100644 --- a/assets/script/game/hero/HeroAnmComp.ts +++ b/assets/script/game/hero/HeroAnmComp.ts @@ -36,7 +36,8 @@ export default class HeroAnmComp extends Component{ this.default_anim='move' } atk () { - if(this.anmcon.getState("atk0").isPlaying) return + if(this.anmcon.getState("max0").isPlaying) return + // if(this.anmcon.getState("atk0").isPlaying) return this.anmcon.play("atk0") } max () { @@ -49,7 +50,7 @@ export default class HeroAnmComp extends Component{ this.default_anim='idle' } buff(){ - if(this.anmcon.getState("buff").isPlaying) return + if(this.anmcon.getState("max0").isPlaying) return this.anmcon.play("buff") } dead(){