feat: 支持 die

This commit is contained in:
richarjiang
2025-09-22 16:50:01 +08:00
parent dd263b6481
commit 954acfb725
101 changed files with 1248 additions and 10 deletions

View File

@@ -285,6 +285,15 @@ export class PlayerController extends Component {
// player 攻击
this.switchAnimation('attack');
this.scheduleOnce(() => {
animation.play(`${otherCollider.node.name}_stand`);
this.isAttacking = false;
this.switchAnimation('die');
}, 3);
}
}
}