blaster/Source/Blaster/Pickups/ShieldPickup.h

36 lines
637 B
C
Raw Normal View History

2022-05-23 10:35:20 +00:00
// 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 OnSphereOverlap(
UPrimitiveComponent* OverlappedComponent,
AActor* OtherActor,
UPrimitiveComponent* OtherComp,
int32 OtherBodyIndex,
bool bFromSweep,
const FHitResult& SweepResult
) override;
private:
UPROPERTY(EditAnywhere)
float ShieldReplenishAmount = 100.f;
UPROPERTY(EditAnywhere)
float ShieldReplenishTime = 2.f;
};