vampires/Source/vampires/GoldPickup.h

32 lines
714 B
C
Raw Normal View History

2024-06-19 18:24:36 +02:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Pickup.h"
#include "GoldPickup.generated.h"
/**
*
*/
UCLASS()
class VAMPIRES_API AGoldPickup : public APickup
{
GENERATED_BODY()
2024-06-24 22:42:33 +02:00
public:
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
int Gold = 1;
2024-06-19 18:24:36 +02:00
protected:
virtual void BeginPlay() override;
public:
virtual void Tick(float DeltaSeconds) override;
virtual void OnInnerBeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
2024-06-19 18:24:36 +02:00
UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep,
const FHitResult& SweepResult) override;
};