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

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);
};