14 lines
329 B
C#
14 lines
329 B
C#
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}";
|
|
}
|
|
} |