Added Interactable Environment Actor Component Class
This commit is contained in:
parent
c7d1394e98
commit
6096d5a783
@ -0,0 +1,31 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "InteractableEnvironmentObject.h"
|
||||
|
||||
// Sets default values for this component's properties
|
||||
UInteractableEnvironmentObject::UInteractableEnvironmentObject()
|
||||
{
|
||||
PrimaryComponentTick.bCanEverTick = true;
|
||||
|
||||
// ...
|
||||
}
|
||||
|
||||
// Called when the game starts
|
||||
void UInteractableEnvironmentObject::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
// ...
|
||||
|
||||
}
|
||||
|
||||
// Called every frame
|
||||
void UInteractableEnvironmentObject::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
|
||||
{
|
||||
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,32 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Components/ActorComponent.h"
|
||||
#include "InteractableEnvironmentObject.generated.h"
|
||||
|
||||
|
||||
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
|
||||
class THE_TWILIGHT_ABYSS_API UInteractableEnvironmentObject : public UActorComponent
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Sets default values for this component's properties
|
||||
UInteractableEnvironmentObject();
|
||||
|
||||
protected:
|
||||
// Called when the game starts
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
public:
|
||||
// Called every frame
|
||||
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
||||
|
||||
UPROPERTY(EditDefaults)
|
||||
bool bInteractable = false;
|
||||
|
||||
UFUNCTION(Blueprintcallable)
|
||||
virtual
|
||||
};
|
Loading…
Reference in New Issue
Block a user