character, widgets, materials, npc
This commit is contained in:
21
Source/SevenStars/NPC.cpp
Normal file
21
Source/SevenStars/NPC.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#include "NPC.h"
|
||||
|
||||
|
||||
ANPC::ANPC()
|
||||
{
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
}
|
||||
|
||||
void ANPC::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
}
|
||||
|
||||
void ANPC::Tick(float DeltaTime)
|
||||
{
|
||||
Super::Tick(DeltaTime);
|
||||
|
||||
}
|
18
Source/SevenStars/NPC.h
Normal file
18
Source/SevenStars/NPC.h
Normal file
@ -0,0 +1,18 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "NPC.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class SEVENSTARS_API ANPC : public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
ANPC();
|
||||
virtual void BeginPlay() override;
|
||||
virtual void Tick(float DeltaTime) override;
|
||||
};
|
Reference in New Issue
Block a user