// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "RotatingActor.h" #include "Components/ActorComponent.h" #include "Components/AudioComponent.h" #include "Engine/TriggerVolume.h" #include "TriggerOpenDoor.generated.h" UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) class BUILDINGESCAPE_API UTriggerOpenDoor : public URotatingActor { GENERATED_BODY() public: UTriggerOpenDoor(); virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; UPROPERTY(EditAnywhere) ATriggerVolume * TriggerVolume = nullptr; protected: virtual void BeginPlay() override; };