Update Waypoint
This commit is contained in:
parent
d38bea02ee
commit
669b611879
12 changed files with 69 additions and 0 deletions
Binary file not shown.
BIN
Content/0_Project/Characters/BaseInteract.uasset
Normal file
BIN
Content/0_Project/Characters/BaseInteract.uasset
Normal file
Binary file not shown.
BIN
Content/0_Project/Characters/NPC.uasset
Normal file
BIN
Content/0_Project/Characters/NPC.uasset
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
35
Source/JamTeacher/WayPointComponent.cpp
Normal file
35
Source/JamTeacher/WayPointComponent.cpp
Normal file
|
@ -0,0 +1,35 @@
|
|||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "WayPointComponent.h"
|
||||
|
||||
// Sets default values for this component's properties
|
||||
UWayPointComponent::UWayPointComponent()
|
||||
{
|
||||
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
|
||||
// off to improve performance if you don't need them.
|
||||
PrimaryComponentTick.bCanEverTick = true;
|
||||
|
||||
// ...
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Called when the game starts
|
||||
void UWayPointComponent::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
// ...
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Called every frame
|
||||
void UWayPointComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
|
||||
{
|
||||
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||
|
||||
// ...
|
||||
}
|
||||
|
34
Source/JamTeacher/WayPointComponent.h
Normal file
34
Source/JamTeacher/WayPointComponent.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Components/SceneComponent.h"
|
||||
|
||||
#include "WayPointComponent.generated.h"
|
||||
|
||||
|
||||
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent), Blueprintable )
|
||||
class JAMTEACHER_API UWayPointComponent : public USceneComponent
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Sets default values for this component's properties
|
||||
UWayPointComponent();
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 ID;
|
||||
|
||||
|
||||
protected:
|
||||
// Called when the game starts
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
|
||||
public:
|
||||
// Called every frame
|
||||
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
||||
|
||||
|
||||
};
|
Loading…
Reference in a new issue