void UInteractionComponent::Interact() { if(AActor* DetectedActor = DetectActor()) { // UInteractable 상속 여부 체크 if(DetectedActor->GetClass()->ImplementsInterface(UInteractable::StaticClass())) { IInteractable::Execute_Interact(DetectedActor, GetOwner()); } } }
ff