Bind TakeDamage onto OnTakeAnyDamage
This commit is contained in:
parent
18702cea0c
commit
0c688fb86a
|
@ -106,4 +106,6 @@ void UHealthComponent::BeginPlay()
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
ResetHealth();
|
ResetHealth();
|
||||||
|
|
||||||
|
GetOwner()->OnTakeAnyDamage.AddUniqueDynamic(this, &UHealthComponent::TakeDamage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue