This commit is contained in:
koritsa
2026-05-17 22:44:49 +03:00
commit 0d90a0b02a
9071 changed files with 44364 additions and 0 deletions
@@ -0,0 +1,27 @@
// © 2025 Naked People Team. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "InteractionTarget.h"
#include "Components/ActorComponent.h"
#include "InteractionManager.generated.h"
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
class NAKEDDESIRE_API UInteractionManager : public UActorComponent
{
GENERATED_BODY()
UPROPERTY()
TArray<TScriptInterface<IInteractionTarget>> InteractionTargets;
public:
UInteractionManager();
void OnTargetEnter(const TScriptInterface<IInteractionTarget>& Target);
void OnTargetExit(const TScriptInterface<IInteractionTarget>& Target);
UFUNCTION(BlueprintCallable)
TScriptInterface<IInteractionTarget> GetNearestInteractionTarget();
};