25fa3d3414
Started to create the base merchant trigger box to start making the interaction between player and merchant npc
28 lines
650 B
C++
28 lines
650 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Components/BoxComponent.h"
|
|
#include "Components/PrimitiveComponent.h"
|
|
#include "MerchantTriggerBox.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
|
class THE_TWILIGHT_ABYSS_API UMerchantTriggerBox : public UBoxComponent
|
|
{
|
|
GENERATED_BODY()
|
|
protected:
|
|
virtual void BeginPlay() override;
|
|
|
|
public:
|
|
UMerchantTriggerBox();
|
|
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
|
|
|
private:
|
|
void PlayerCheck();
|
|
|
|
};
|