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