Add Trigger Volume, and some UPROPERTIES
This commit is contained in:
parent
122bd96a81
commit
750ec49b72
Binary file not shown.
Binary file not shown.
@ -4,6 +4,8 @@
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Components/ActorComponent.h"
|
||||
#include "Engine/TriggerVolume.h"
|
||||
|
||||
#include "OpenDoor.generated.h"
|
||||
|
||||
|
||||
@ -24,6 +26,11 @@ public:
|
||||
// Called every frame
|
||||
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
||||
|
||||
private:
|
||||
UPROPERTY(VisibleAnywhere)
|
||||
float OpenAngle = 90.f;
|
||||
|
||||
UPROPERTY(EditAnywhere)
|
||||
ATriggerVolume* PressurePlate;
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user