释放技能动画 设定在技能参数中+伤害系统建立

This commit is contained in:
2025-02-03 10:45:06 +08:00
parent 89978ddbe8
commit cdb8261be9
17 changed files with 960 additions and 462 deletions

View File

@@ -49,12 +49,30 @@ export class HeroSpine extends Component {
// console.log("do max");
this.anm.max()
}
play(name:string){
switch(name){
case "max":
this.max()
break
case "atk":
this.atk()
break
case "idle":
this.idle()
break
case "move":
this.move()
break
}
}
move(){
// console.log("doing move");
if(this.status=="move") return
this.status="move"
this.anm.move()
}
atked() {
// console.log("do atked");
this.anm.atked()