This commit is contained in:
MaddoScientisto 2025-01-20 21:58:59 +01:00
commit ba46799911
7 changed files with 60 additions and 6 deletions

View file

@ -41,12 +41,15 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
private bool _isDestroyed = false;
//private InventoryManager _inventoryManager;
public override void _Ready()
{
_currentHealth = Health;
_animatedSprite = GetNode<AnimatedSprite2D>("./Smoothing2D/AnimatedSprite2D");
_crosshair = GetNode<Sprite2D>("./Smoothing2D/Crosshair");
//_inventoryManager = GetNode<InventoryManager>("/root/GameScene/InventoryManager");
_movementDirection = Vector2.Zero;
_facingDirection = Vector2.Zero;