Compare commits
2 Commits
18702cea0c
...
3b2301b270
Author | SHA1 | Date |
---|---|---|
baz | 3b2301b270 | |
baz | 0c688fb86a |
|
@ -106,4 +106,6 @@ void UHealthComponent::BeginPlay()
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
ResetHealth();
|
ResetHealth();
|
||||||
|
|
||||||
|
GetOwner()->OnTakeAnyDamage.AddUniqueDynamic(this, &UHealthComponent::TakeDamage);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "Kismet/GameplayStatics.h"
|
#include "Kismet/GameplayStatics.h"
|
||||||
#include "vampires/PlayerCharacter.h"
|
#include "vampires/PlayerCharacter.h"
|
||||||
#include "Components/ProgressBar.h"
|
#include "Components/ProgressBar.h"
|
||||||
|
#include "vampires/HealthComponent.h"
|
||||||
#include "vampires/VampireCharacter.h"
|
#include "vampires/VampireCharacter.h"
|
||||||
|
|
||||||
void UHealthbarWidget::NativeConstruct()
|
void UHealthbarWidget::NativeConstruct()
|
||||||
|
|
Loading…
Reference in New Issue