29 lines
489 B
C++
29 lines
489 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Pickup.h"
|
|
#include "ShieldPickup.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class BLASTER_API AShieldPickup : public APickup
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
|
|
protected:
|
|
virtual void OnOverlap(ABlasterCharacter* BlasterCharacter) override;
|
|
|
|
private:
|
|
UPROPERTY(EditAnywhere)
|
|
float ShieldReplenishAmount = 100.f;
|
|
|
|
UPROPERTY(EditAnywhere)
|
|
float ShieldReplenishTime = 2.f;
|
|
|
|
};
|