feat: 支持 die
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user