暂时解决 受伤触发技能 出错问题

This commit is contained in:
2024-11-17 08:59:35 +08:00
parent 227cfd26d4
commit 75d2dd5988
6 changed files with 57 additions and 29 deletions

View File

@@ -8,7 +8,6 @@ export class dead extends Component {
anim.on(Animation.EventType.FINISHED, this.onAnimationFinished, this);
}
onAnimationFinished(){
console.log("动画结束");
this.node.destroy();
}
update(deltaTime: number) {