Bind TakeDamage onto OnTakeAnyDamage

This commit is contained in:
baz 2024-11-16 01:35:21 +00:00
parent 18702cea0c
commit 0c688fb86a
1 changed files with 2 additions and 0 deletions

View File

@ -106,4 +106,6 @@ void UHealthComponent::BeginPlay()
Super::BeginPlay();
ResetHealth();
GetOwner()->OnTakeAnyDamage.AddUniqueDynamic(this, &UHealthComponent::TakeDamage);
}