英雄动画修复,技能反向修复

This commit is contained in:
2024-11-16 16:27:46 +08:00
parent 6ef4ccb773
commit 0793334379
29 changed files with 2899 additions and 2936 deletions

View File

@@ -73,7 +73,7 @@ export class HeroSpine extends Component {
}
idle(){
if(!this.in_playing()){
// console.log("do idle");
console.log("do idle");
this.animator.play(this.idle_clip.name);
}
}
@@ -85,12 +85,12 @@ export class HeroSpine extends Component {
max(){
// console.log("do max");
this.animator.play(this.max_clip.name);
this.animator.play(this.max_clip.name);
}
move(){
if(!this.in_playing()){
// console.log("do move");
if(!this.animator.getState(this.move_clip.name).isPlaying) {
console.log("doing move");
this.animator.play(this.move_clip.name);
}
}