38 lines
783 B
C++
38 lines
783 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "HYInteractableActor.h"
|
|
|
|
// Sets default values
|
|
AHYInteractableActor::AHYInteractableActor()
|
|
{
|
|
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
|
|
}
|
|
|
|
void AHYInteractableActor::Interact_Implementation(APlayerController* Controller)
|
|
{
|
|
return;
|
|
}
|
|
|
|
FString AHYInteractableActor::GetInteractText() const
|
|
{
|
|
return FString::Printf(TEXT("s%: Press F to %s"), *Name, *Action);
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void AHYInteractableActor::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
// Called every frame
|
|
void AHYInteractableActor::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
}
|
|
|