英雄动画修复,技能反向修复
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user