UpdateHealthbar on BindOwner
This commit is contained in:
parent
ba0243bd65
commit
fdfa37a346
|
@ -13,6 +13,7 @@ void UEnemyHealthbarUserWidget::BindOwner(AEnemyCharacter* NewOwner)
|
|||
{
|
||||
auto healthComponent = Owner->GetHealthComponent();
|
||||
healthComponent->OnDamaged.BindUFunction(this, "UpdateHealthbar");
|
||||
UpdateHealthbar();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue