selector changes

This commit is contained in:
MaddoScientisto 2025-01-30 08:34:09 +01:00
commit f9432a61ee
11 changed files with 103 additions and 16 deletions

View file

@ -8,6 +8,12 @@ public partial class Hud : CanvasLayer
private Label _healthLabel;
[Export]
public PackedScene SelectorScene { get; set; }
[Export]
private Node2D _selector;
public override void _Ready()
{
// Assuming the HUD has a Label node named "HealthLabel"
@ -42,4 +48,12 @@ public partial class Hud : CanvasLayer
{
_healthLabel.Text = $"{newHealth}/{maxHealth}";
}
public void UpdateInteractable(Interactable interactable) {
GD.Print($"Interactable ${interactable.Name} entered in HUD");
//_selector.Position = _selector.tolo
}
}