30 lines
746 B
C++
30 lines
746 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Components/SphereComponent.h"
|
|
#include "ItemPickupComponent.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS(Blueprintable, BlueprintType, ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
|
|
class ENCOREUNPROJET_API UItemPickupComponent : public USphereComponent
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
// Sets default values for this component's properties
|
|
UItemPickupComponent();
|
|
|
|
protected:
|
|
|
|
void BeginPlay() override;
|
|
|
|
UFUNCTION()
|
|
void OnBoxBeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
|
|
|
|
|
|
};
|