mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 12:35:53 +00:00
FSM Player health and animations
This commit is contained in:
parent
af0261ce8e
commit
f91df43caa
13 changed files with 317 additions and 32 deletions
|
|
@ -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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue