Fix compilation issues
This commit is contained in:
parent
357e4fdf5e
commit
345ea88d79
|
@ -5,6 +5,8 @@
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "Components/SphereComponent.h"
|
#include "Components/SphereComponent.h"
|
||||||
#include "Field/FieldSystemActor.h"
|
#include "Field/FieldSystemActor.h"
|
||||||
|
#include <Field/FieldSystemObjects.h>
|
||||||
|
#include "Field/FieldSystemComponent.h"
|
||||||
#include "NakatomiFieldSystemActor.generated.h"
|
#include "NakatomiFieldSystemActor.generated.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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::
|
// 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)));
|
const float Sin = FMath::Abs(FMath::Sin(GetWorld()->GetRealTimeSeconds() * (LightFadeSpeed / 2)));
|
||||||
//PointLightComponent->SetLightBrightness(sin * MaxLightBrightness);
|
//PointLightComponent->SetLightBrightness(sin * MaxLightBrightness);
|
||||||
PointLightComponent->SetLightBrightness(Sin * MaxLightBrightness);
|
//PointLightComponent->SetLightBrightness(Sin * MaxLightBrightness);
|
||||||
}
|
}
|
||||||
|
|
||||||
void APickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
|
void APickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
|
||||||
|
|
Loading…
Reference in New Issue