From 178f9e3363f1b0bb2a04ef53ae98b689a13570f3 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 30 Aug 2025 22:05:09 -0300 Subject: UI --- scripts/UI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/UI.cs') diff --git a/scripts/UI.cs b/scripts/UI.cs index fada956..781c14a 100644 --- a/scripts/UI.cs +++ b/scripts/UI.cs @@ -1,13 +1,13 @@ using Godot; using System; -public partial class UI : Node2D +public partial class UI : Node { private TextureProgressBar hpBar; public override void _Ready() { base._Ready(); - hpBar = GetNode("CanvasLayer/HPbar"); + hpBar = GetNode("CanvasLayer/MainContainer/HPbar"); } public void OnHealthChanged(int hp, int maxHp) { -- cgit v1.2.3