Added Interactable - interface for interaction system. Implemented in test item (TestBox). Created interaction component for character Added interaction input - not implemented.
20 lines
373 B
C++
20 lines
373 B
C++
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/Interface.h"
|
|
#include "Interactable.generated.h"
|
|
|
|
UINTERFACE(MinimalAPI, Blueprintable)
|
|
class UInteractable : public UInterface
|
|
{
|
|
GENERATED_BODY()
|
|
};
|
|
|
|
class EXO_API IInteractable
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Interaction")
|
|
void Interact();
|
|
}; |