FSM Selector with sound

This commit is contained in:
Marco 2025-03-01 18:02:11 +01:00
commit ee09c50dbd
20 changed files with 330 additions and 28 deletions

View file

@ -6,19 +6,28 @@ public partial class Dead : PlayerFSMState
{
[Export]
private PlayerAnimationProvider _animationProvider;
public override void Init(ActorStateMachine stateMachine)
{
base.Init(stateMachine);
// get hud?
}
public override void EnterState()
{
_animationProvider.PlayDeathAnimation();
// show game over
}
public override void ExitState()
{
// Hide game over
}
public override void ProcessState(double delta)
{
// wait for button
}