-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPickupSpawn.h
48 lines (32 loc) · 1.07 KB
/
PickupSpawn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "PickupSpawn.generated.h"
class USphereComponent;
class UDecalComponent;
class AHealthPickupActor;
UCLASS()
class SILENTRED2_API APickupSpawn : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
APickupSpawn();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
UPROPERTY(VisibleAnywhere, Category = "Components")
USphereComponent* SphereComp;
UPROPERTY(VisibleAnywhere, Category = "Components")
UDecalComponent* DecalComp;
UPROPERTY(EditInstanceOnly, Category = "PickupActor")
TSubclassOf<AHealthPickupActor> PickupClass;
AHealthPickupActor* PickupInstance;
UPROPERTY(EditDefaultsOnly, Category = "PickupActor")
float CoolDownDuration;
FTimerHandle TimerHandle_RespawnTimer;
void Respawn();
public:
virtual void NotifyActorBeginOverlap(AActor* OtherActor) override;
};