Unreal_simple_journal/Source/EncoreUnProjet/ItemPickupComponent.cpp
2023-10-22 19:29:46 +02:00

24 lines
701 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "ItemPickupComponent.h"
#include "utils_functions.h"
UItemPickupComponent::UItemPickupComponent()
{
PrimaryComponentTick.bCanEverTick = false;
}
void UItemPickupComponent::BeginPlay()
{
Super::BeginPlay();
OnComponentBeginOverlap.AddDynamic(this, &UItemPickupComponent::OnBoxBeginOverlap);
}
void UItemPickupComponent::OnBoxBeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep,
const FHitResult& SweepResult)
{
}