This commit is contained in:
2024-09-25 17:23:56 +08:00
parent 3870bdec50
commit 5831697fb8
21 changed files with 155 additions and 93 deletions

View File

@@ -22,7 +22,7 @@ export class RoleSpine extends Component {
private atk_name: string = "atk";
private move_name: string = "move";
private max_name: string = "max";
private idel_name: string = "idle";
private idel_name: string = "move";
start() {
this.spine.setAnimation(0, this.default, true);
}
@@ -45,9 +45,11 @@ export class RoleSpine extends Component {
this.spine.setAnimation(0, this.atk_name, false);
}
idle(){
this.default = this.idel_name;
this.spine.setAnimation(0, this.idel_name, true);
}
move(){
this.default = this.move_name;
this.spine.setAnimation(0, this.move_name, true);
}
max(){