2022-11-13 16:43:01 +00:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#include "GameFramework/Actor.h"
|
|
|
|
#include "Interaction.generated.h"
|
|
|
|
|
|
|
|
UCLASS()
|
|
|
|
class THE_TWILIGHT_ABYSS_API AInteraction : public AActor
|
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
public:
|
|
|
|
// Sets default values for this actor's properties
|
|
|
|
AInteraction();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Called when the game starts or when spawned
|
|
|
|
virtual void BeginPlay() override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
// Called every frame
|
|
|
|
virtual void Tick(float DeltaTime) override;
|
2022-11-13 22:21:51 +00:00
|
|
|
|
2022-11-13 16:43:01 +00:00
|
|
|
UPROPERTY(EditAnywhere)
|
|
|
|
TSubclassOf<UUserWidget> Widget;
|
|
|
|
|
|
|
|
virtual void OnInteract();
|
2022-11-28 22:52:51 +00:00
|
|
|
virtual void RemoveWidget();
|
|
|
|
UPROPERTY()
|
|
|
|
UUserWidget* CurrentWidget;
|
2022-11-28 23:15:41 +00:00
|
|
|
UPROPERTY(EditAnywhere)
|
|
|
|
float WaitTimer;
|
2022-11-13 16:43:01 +00:00
|
|
|
};
|
2022-11-13 22:21:51 +00:00
|
|
|
|