释放技能动画 设定在技能参数中+伤害系统建立
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user