18 lines
278 B
C#
18 lines
278 B
C#
|
|
using Godot;
|
||
|
|
using Rokojori;
|
||
|
|
|
||
|
|
[Tool, GlobalClass]
|
||
|
|
public partial class SyncHealthUI:Action
|
||
|
|
{
|
||
|
|
[Export]
|
||
|
|
public UIText text;
|
||
|
|
|
||
|
|
[Export]
|
||
|
|
public Health health;
|
||
|
|
|
||
|
|
protected override void _OnTrigger()
|
||
|
|
{
|
||
|
|
text.locale = LocaleText.Create( health.currentHealth + "" );
|
||
|
|
}
|
||
|
|
}
|