Fix compilation issues

This commit is contained in:
baz 2023-11-12 21:24:03 +00:00
parent 357e4fdf5e
commit 345ea88d79
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
#include "CoreMinimal.h"
#include "Components/SphereComponent.h"
#include "Field/FieldSystemActor.h"
#include <Field/FieldSystemObjects.h>
#include "Field/FieldSystemComponent.h"
#include "NakatomiFieldSystemActor.generated.h"

View File

@ -43,7 +43,7 @@ void APickup::Tick(const float DeltaTime)
// We have to do this because Unreal doesn't like it when you create lights in c++ apparently ::pain::
const float Sin = FMath::Abs(FMath::Sin(GetWorld()->GetRealTimeSeconds() * (LightFadeSpeed / 2)));
//PointLightComponent->SetLightBrightness(sin * MaxLightBrightness);
PointLightComponent->SetLightBrightness(Sin * MaxLightBrightness);
//PointLightComponent->SetLightBrightness(Sin * MaxLightBrightness);
}
void APickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,