Nakatomi/Source/Nakatomi/Destructable.h

31 lines
653 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Destructable.generated.h"
UCLASS()
class NAKATOMI_API ADestructable : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
class UParticleSystem* ParticleEffect;
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
class UStaticMeshComponent* StaticMesh;
// Sets default values for this actor's properties
ADestructable();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
void Destruct();
};