24 lines
701 B
C++
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)
|
|
{
|
|
}
|