Add HealthPickup class

This commit is contained in:
Louis Hobbs 2023-06-24 15:13:39 +01:00
parent 79d61a200e
commit 9bf226b614
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,26 @@

#include "HealthPickup.h"
// Sets default values
AHealthPickup::AHealthPickup()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Called when the game starts or when spawned
void AHealthPickup::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void AHealthPickup::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}

View File

@ -0,0 +1,23 @@
#pragma once
#include "CoreMinimal.h"
#include "Pickup.h"
#include "HealthPickup.generated.h"
UCLASS()
class NAKATOMI_API AHealthPickup : public APickup
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AHealthPickup();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
};