PawnBase.cpp 921 Bytes
Newer Older
1 2 3 4 5
// Fill out your copyright notice in the Description page of Project Settings.

#include "PawnBase.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "Plot3D.h"
6
#include "DataComponent.h"
7 8 9 10 11 12

// Sets default values
APawnBase::APawnBase()
{
 	// Set this pawn to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;
13 14 15
	Data = CreateDefaultSubobject<UDataComponent>(TEXT("DataComponent"));
	Data->bAutoActivate = true;
	Data->bAutoRegister = true;
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
}

// Called when the game starts or when spawned
void APawnBase::BeginPlay()
{
	Super::BeginPlay();

}

// Called every frame
void APawnBase::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}

// Called to bind functionality to input
void APawnBase::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);

}