FSM Player movement

This commit is contained in:
Maddo 2025-02-28 19:59:36 +01:00
commit c59a480ffd
10 changed files with 131 additions and 36 deletions

View file

@ -125,6 +125,7 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
_state = PlayerState.Active;
_weaponProvider = GetNode<PlayerWeaponProvider>("WeaponProvider");
_weaponProvider.Init(this);
_animatedSprite = GetNode<AnimatedSprite2D>("./Smoothing2D/AnimatedSprite2D");
_crosshair = GetNode<Sprite2D>("./Smoothing2D/Crosshair");
@ -582,6 +583,7 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
public enum PlayerState
{
Init,
Active,
Paused,
Controlling,