diff --git a/Source/vampires/Widgets/HUDWidget.h b/Source/vampires/Widgets/HUDWidget.h index 7cf0359..1a5b611 100644 --- a/Source/vampires/Widgets/HUDWidget.h +++ b/Source/vampires/Widgets/HUDWidget.h @@ -4,10 +4,10 @@ #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" -#include "Components/ProgressBar.h" -#include "Components/TextBlock.h" #include "HUDWidget.generated.h" +class UTextBlock; +class UProgressBar; /** * */ diff --git a/Source/vampires/Widgets/HealthbarWidget.cpp b/Source/vampires/Widgets/HealthbarWidget.cpp index b066075..ec7aaf8 100644 --- a/Source/vampires/Widgets/HealthbarWidget.cpp +++ b/Source/vampires/Widgets/HealthbarWidget.cpp @@ -5,6 +5,8 @@ #include "Kismet/GameplayStatics.h" #include "vampires/PlayerCharacter.h" +#include "Components/ProgressBar.h" +#include "vampires/VampireCharacter.h" void UHealthbarWidget::NativeConstruct() { diff --git a/Source/vampires/Widgets/HealthbarWidget.h b/Source/vampires/Widgets/HealthbarWidget.h index 9ecba3e..a74edf5 100644 --- a/Source/vampires/Widgets/HealthbarWidget.h +++ b/Source/vampires/Widgets/HealthbarWidget.h @@ -4,10 +4,9 @@ #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" -#include "Components/ProgressBar.h" -#include "vampires/VampireCharacter.h" #include "HealthbarWidget.generated.h" +class UProgressBar; /** * */