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