diff options
Diffstat (limited to 'scripts/UI.cs')
| -rw-r--r-- | scripts/UI.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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<TextureProgressBar>("CanvasLayer/HPbar"); + hpBar = GetNode<TextureProgressBar>("CanvasLayer/MainContainer/HPbar"); } public void OnHealthChanged(int hp, int maxHp) { |
