FSM Player health and animations

This commit is contained in:
Marco 2025-03-01 14:08:31 +01:00
commit f91df43caa
13 changed files with 317 additions and 32 deletions

View file

@ -178,7 +178,6 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
case GameState.Menu:
case GameState.Paused:
_canMove = false;
_state = PlayerState.Paused;
break;
case GameState.Playing:
_canMove = true;
@ -186,7 +185,6 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
break;
case GameState.Dialogue:
_canMove = false;
_state = PlayerState.Paused;
break;
case GameState.Controlling:
_canMove = false;
@ -585,7 +583,7 @@ public enum PlayerState
{
Init,
Active,
Paused,
Cutscene,
Controlling,
Dead,
}