Added basic health bar
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Fight.UI;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class FighterHealthBarVisual : Node2D
|
||||
{
|
||||
[Export] private Label _tmpHealthLabel = null!;
|
||||
|
||||
public void UpdateHealth(int currentHealth, int maxHealth)
|
||||
{
|
||||
_tmpHealthLabel.Text = $"{currentHealth} / {maxHealth}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user