Init
This commit is contained in:
30
Source/FireworkDuels/PickableObject.cpp
Normal file
30
Source/FireworkDuels/PickableObject.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "PickableObject.h"
|
||||
|
||||
// Sets default values
|
||||
APickableObject::APickableObject()
|
||||
{
|
||||
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
|
||||
StaticMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("StaticMesh"));
|
||||
StaticMesh->SetStaticMesh(Mesh);
|
||||
RootComponent = StaticMesh;
|
||||
|
||||
}
|
||||
|
||||
// Called when the game starts or when spawned
|
||||
void APickableObject::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
}
|
||||
|
||||
// Called every frame
|
||||
void APickableObject::Tick(float DeltaTime)
|
||||
{
|
||||
Super::Tick(DeltaTime);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user