From b1eed2ff2e793bf01643965c05786c9e0aac67ae Mon Sep 17 00:00:00 2001 From: Louis Hobbs Date: Sat, 24 Jun 2023 15:10:46 +0100 Subject: [PATCH] Add Pickup class --- Source/Nakatomi/Pickup.cpp | 27 +++++++++++++++++++++++++++ Source/Nakatomi/Pickup.h | 26 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 Source/Nakatomi/Pickup.cpp create mode 100644 Source/Nakatomi/Pickup.h diff --git a/Source/Nakatomi/Pickup.cpp b/Source/Nakatomi/Pickup.cpp new file mode 100644 index 0000000..329f487 --- /dev/null +++ b/Source/Nakatomi/Pickup.cpp @@ -0,0 +1,27 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Pickup.h" + +// Sets default values +APickup::APickup() +{ + // 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 APickup::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void APickup::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + diff --git a/Source/Nakatomi/Pickup.h b/Source/Nakatomi/Pickup.h new file mode 100644 index 0000000..90d9778 --- /dev/null +++ b/Source/Nakatomi/Pickup.h @@ -0,0 +1,26 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/Actor.h" +#include "Pickup.generated.h" + +UCLASS() +class NAKATOMI_API APickup : public AActor +{ + GENERATED_BODY() + +public: + // Sets default values for this actor's properties + APickup(); + +protected: + // Called when the game starts or when spawned + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void Tick(float DeltaTime) override; + +};