mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 23:05:53 +00:00
FSM Player movement
This commit is contained in:
parent
7d9db8cfb6
commit
c59a480ffd
10 changed files with 131 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue