| 10 | #include "Kismet/GameplayStatics.h" |
| 11 | |
| 12 | AItem::AItem() |
| 13 | { |
| 14 | PrimaryActorTick.bCanEverTick = true; |
| 15 | |
| 16 | ItemMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("ItemMeshComponent")); |
| 17 | ItemMesh->SetCollisionResponseToAllChannels(ECollisionResponse::ECR_Ignore); |
| 18 | ItemMesh->SetCollisionEnabled(ECollisionEnabled::NoCollision); |
| 19 | RootComponent = ItemMesh; |
| 20 | |
| 21 | Sphere = CreateDefaultSubobject<USphereComponent>(TEXT("Sphere")); |
| 22 | Sphere->SetupAttachment(GetRootComponent()); |
| 23 | |
| 24 | ItemEffect = CreateDefaultSubobject<UNiagaraComponent>(TEXT("Embers")); |
| 25 | ItemEffect->SetupAttachment(GetRootComponent()); |
| 26 | } |
| 27 | |
| 28 | void AItem::BeginPlay() |
| 29 | { |
nothing calls this directly
no outgoing calls
no test coverage detected